After connecting, you might have noticed a warning:
Warning: Using a password on the command line interface can be insecure.
To learn about the secure ways of connecting, refer to Chapter 14, Security.
Once you are connected to the command-line prompt, you can execute the SQL statements, which can be terminated by ;, \g, or \G. ; or \g—output is displayed horizontally, \G—output is displayed vertically.