0

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

avien
  • 177
  • 5
  • 14

1 Answers1

2
mysql -uUSERNAME -pPASSWORD db_name -e "SELECT whatever FROM table ..."
Barmar
  • 741,623
  • 53
  • 500
  • 612