The SELECT statement is a form of query. It can be only be issued interactively. For detailed information, see select-statement and Queries.