USE
statement
USE
statement
The USE statement specifies a namespace and / or a database to use for the subsequent SurrealQL statements.
Statement syntax
USE [ NS @ns ] [ DB @db ];
Example usage
The following queries show example usage of this statement:
USE NS test; -- Switch to the 'test' Namespace
USE DB test; -- Switch to the 'test' Database
USE NS test DB test; -- Switch to the 'test' Namespace and 'test' Database