Reputation: 177
How can I run SQL statements in a batch file, without reading the statement in a text file?
Upvotes: 0
Views: 417
Reputation: 780724
mysql -uUSERNAME -pPASSWORD db_name -e "SELECT whatever FROM table ..."
Upvotes: 2