Execute SQL Statement

apex sql ] <SQL>] [--file= <FILENAME>]
Execute a single SQL statement against the database, or a SQL file. If run with no argument, you will be connected to the SQL database and given 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