Back to top
  Back to overview

Statements

SurrealDB has a large number of different SurrealQL statements for inserting, updating, deleting, working with graph data, and for configuring the database. View detailed information and examples on how to use each statement type below.

USE statement

Switch to a different namespace or database

LET statement

Import a SurrealQL script file into a local or remote SurrealDB database server

BEGIN statement

Import a SurrealQL script file into a local or remote SurrealDB database server

CANCEL statement

Import a SurrealQL script file into a local or remote SurrealDB database server

COMMIT statement

Import a SurrealQL script file into a local or remote SurrealDB database server

IF ELSE statement

Export a SurrealQL script file from a local or remote SurrealDB database server

SELECT statement

Display the current version of the installed command-line tool, and the machine architecture

INSERT statement

Display help information and instructions on the command-line tool and its arguments

CREATE statement

Display help information and instructions on the command-line tool and its arguments

UPDATE statement

Display help information and instructions on the command-line tool and its arguments

RELATE statement

Display help information and instructions on the command-line tool and its arguments

DELETE statement

Display help information and instructions on the command-line tool and its arguments

DEFINE statement

Display help information and instructions on the command-line tool and its arguments

REMOVE statement

Display help information and instructions on the command-line tool and its arguments

INFO statement

Display help information and instructions on the command-line tool and its arguments