![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
/directory/outputfile/id_??? |
#2
| |||
| |||
|
|
Hello, I'm new in dynamic SQL query and I have a problem need help. For example: I have a SQL query like this: select hw.family,hw.id where hw.id="1234567"; and I have a txt file holding more than ten thousands id. I need feed the ids from the file to the SQL query, inside the "???", please let me know how can I do this? then I put the SQL query in a file and run it from another .csh file. Inside the .csh file, I have something like this: mysql -u usrname dataname< /directory/sqlfile /directory/outputfile/id_??? how can I have the output files created with different names according with the id inputs in the run time? Thanks a lot. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
oh, I'm sorry, I'm sending this to comp.database.ms-access, hope that's a right place to get right answer. |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
|
can't find any MySQL group here. Trying www.mysql.com now. Thanks. Maybe that tells you something about that database. |
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |