Execute SQL Statement

apex sql ] <SQL>] [--file= <FILENAME>]
Execute a single SQL statement against the database, or a SQL file. If no arguments are passed to the command, you will be connected directly to the SQL database and its prompt.

Parameters

Parameter Description
sql The SQL statement to execute against the database.

Flags

Flag Description
--file Optional location of the file containing SQL statements to execute.

Examples

  • ./apex sql "SELECT * FROM admin"
  • ./apex sys sql --file dev.sql