Guest_imported
New member
- Jan 1, 1970
- 0
Hi all,
I'm trying to populate a table "myTable" in mySQL and I am doing it trough "load" and reading the input stored in a text file "file.txt".
Now "myTable" has more columns than "file.txt". My worry is to fill those colums too when I'm reading the "file.txt".
myTable is like this:
id
name
valu1
valu2
and file.txt is
name valu1 valu2
now, I have a separate table "table2" which has the mapping of
name-> id
So, while populating the table "myTable" through "file.txt", I want to fill "id" column also.
Can anyone tell me how to accomplish this ?
Thanks in advance.
abby
I'm trying to populate a table "myTable" in mySQL and I am doing it trough "load" and reading the input stored in a text file "file.txt".
Now "myTable" has more columns than "file.txt". My worry is to fill those colums too when I'm reading the "file.txt".
myTable is like this:
id
name
valu1
valu2
and file.txt is
name valu1 valu2
now, I have a separate table "table2" which has the mapping of
name-> id
So, while populating the table "myTable" through "file.txt", I want to fill "id" column also.
Can anyone tell me how to accomplish this ?
Thanks in advance.
abby