avien
avien

Reputation: 177

Running direct SQL statements using a batch file

How can I run SQL statements in a batch file, without reading the statement in a text file?

Upvotes: 0

Views: 417

Answers (1)

Barmar
Barmar

Reputation: 780724

mysql -uUSERNAME -pPASSWORD db_name -e "SELECT whatever FROM table ..."

Upvotes: 2

Related Questions