Connecting Tech Pros Worldwide Forums | Help | Site Map

A liitle help, passing parameters to MySQL, a quickie!

Newbie
 
Join Date: May 2007
Posts: 4
#1: May 25 '07
Hi,

I want to open MqSQL and run a command using a DOS batch script like this, it runs but doesn't update dB. any ideas is the command line tag -e correct?

mysql -e "USE <database name" -e "INSERT INTO ,table VALUES('xxx','xxxx','xxx','xxx','xxx','xxx');"

Thanks

Newbie
 
Join Date: May 2007
Posts: 4
#2: May 25 '07

re: A liitle help, passing parameters to MySQL, a quickie!


its okay thanks... should be


mysql <database name -e "INSERT INTO ,table VALUES('xxx','xxxx','xxx','xxx','xxx','xxx');"


Quote:

Originally Posted by cmc12

Hi,

I want to open MqSQL and run a command using a DOS batch script like this, it runs but doesn't update dB. any ideas is the command line tag -e correct?

mysql -e "USE <database name" -e "INSERT INTO ,table VALUES('xxx','xxxx','xxx','xxx','xxx','xxx');"

Thanks

Reply