SQL Statements¶
SQream supports commands from ANSI SQL.
Data Definition Commands (DDL)¶
Command |
Usage |
---|---|
Add a new column to a table |
|
Change the default schema for a role |
|
Change the schema of a table |
|
Change clustering keys in a table |
|
Create a new database |
|
Create a new foreign table in the database |
|
Create a new user-defined function in the database |
|
Create a new schema in the database |
|
Create a new table in the database |
|
Create a new table in the database using results from a select query |
|
Create a new view in the database |
|
Lists information about columns in an internal or external table |
|
Shows all configurations set on the session level |
|
Lists information about the databases in your cluster |
|
List all of your pools |
|
Lists information about schemas in your cluster |
|
List information about tables in your database |
|
Lists all the tables in your database |
|
Lists all user-defined functions in your database |
|
Creates a list of database views |
|
Drops all clustering keys in a table |
|
Drop a column from a table |
|
Drop a database and all of its objects |
|
Drop a function |
|
Drop a schema |
|
Drop a table and its contents from a database |
|
Drop a view |
|
Rename a column |
|
Rename a table |
|
Lets you shift between databases within an existing session |
|
Lets you shift between pools within a session |
|
Lets you shift between schemes within an existing session |
|
Rename a schema |
Data Manipulation Commands (DML)¶
Command |
Usage |
---|---|
Bulk load data into an existing table from different file formats |
|
Export a select query or entire table to CSV files |
|
Delete specific rows from a table |
|
Inserts rows into a table |
|
Select rows and column from a table |
|
Delete all rows from a table |
|
Modify the value of certain columns in existing rows without creating a table |
|
Return rows containing literal values |
Utility Commands¶
Command |
Usage |
---|---|
Performs a graceful stop, known as an abort, on an active statement |
|
This command generates statistics for an entire table or for a specific column within a table |
|
Returns system user activity |
|
Returns a list of locks from across your cluster |
|
Lists of all of your saved queries |
|
Returns the SQL syntax of a specific saved query |
|
Lists queries per session, including queued queries |
|
Outputs information about your current session |
|
Displays information about query execution |
|
Drops a saved query |
|
This command terminates an ANALYZE TABLE execution |
|
View the |
|
Executes a previously saved query |
|
Returns a static query plan, which can be used to debug query plans |
|
This command displays the results of an ANALYZE TABLE operation |
|
View the |
|
View the |
|
View the |
|
Recreate a view after schema changes |
|
Recompiles a saved query that has been invalidated due to a schema change |
|
Saves query execution plan |
|
This command aborts an ANALYZE TABLE execution |
|
This command returns information about your statistics collection request |
Access Control Commands¶
The following table shows the Access Control commands:
Command |
Usage |
---|---|
Applies a change to defaults in the current schema |
|
Applies a change to an existing role |
|
Creates a role, which lets a database administrator control permissions on tables and databases |
|
Lists all roles and their database connection privileges |
|
Lists all roles defined in your system |
|
Lists all role privileges |
|
Removes roles |
|
Returns all permissions granted to a role in table format |
|
Returns the definition of a global role in DDL format |
|
Returns the definition of all global roles in DDL format |
|
Returns the definition of a role’s database in DDL format |
|
Returns the definition of all role databases in DDL format |
|
Returns a list of permissions required to run a statement or query |
|
Grant permissions to a role |
|
Revoke permissions from a role |
|
Rename a role |