dbTalk Databases Forums  

dynamic SQL query question

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss dynamic SQL query question in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
leileili@hotmail.com
 
Posts: n/a

Default Re: dynamic SQL query question - 05-20-2005 , 02:15 PM






Thank you, I finally got answer from mailling.database.mysql.
Thank you everyone.
Quote:
test.sh
cat idlist.txt | while read id
do
mysql -u username dataname -e "select hw.family, hw.id from hw
where hw.id = '$id'" > /directory/outputfile/id_$id
done



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.