Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. Using the mysql Client Progra... > Specifying Queries on the Command Li...

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