1.18. Specifying Queries on the Command Line
1.18.1. Problem
You want to specify a query
directly on the command line for mysql to execute.
1.18.2. Solution
mysql can
read a query from its argument list. Use the -e (or
--execute) option to specify a query on the
command line.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial