Running SQL on Postgresql

Use the command psql followed by a database name such as psql films and type sql statements. Other psql commands start with '\'

\?

lists all psql commands.

\h

provides help for sql statements.

\q

quits psql.

Online documentation for psql is available by typing ( man psql ).