This set of example show how to execute commands stored in strings or script files, without the need of the interactive prompt. This is especially useful to when a shell script needs to interact with a database.
Execute command from a string
$ mysql -uroot -proot test -e'select * from people'
+...