Data Definition Language (DDL)#
Data Definition Language (DDL) statements define and change the structure of your data — virtual databases, schemas, tables, views, indexes, functions and roles. Because Querona virtualizes data, these structures are metadata mapped over the connected sources rather than physical storage; see Materialization for when they are materialized into a backing store.
Create#
Statement |
Description |
|---|---|
Creates a virtual database over a connection. |
|
Creates a schema in a virtual database. |
|
Creates a new table in the virtual database. |
|
Creates a metadata-only virtual table that maps to a source object without copying data. |
|
Creates a view in the virtual database. |
|
Creates an index on a view. |
|
Creates a user-defined function (UDF). |
|
Creates a database role. |
|
Creates a server-level credential (identity + optional secret) shared by all databases on the cluster. |
|
Creates a database scoped credential (identity + optional secret) in the current virtual database. |
|
Accepted for SQL Server compatibility; a no-op — no master key is persisted. |
Alter#
Statement |
Description |
|---|---|
Adds a column or constraint to a table, or renames it. |
|
Changes the definition of an existing view. |
|
Modifies an existing index. |
|
Resets a server-level credential’s identity and secret. |
|
Resets a database scoped credential’s identity and secret. |
Drop#
Statement |
Description |
|---|---|
Removes a virtual database. |
|
Removes a schema. |
|
Removes an index from a view. |
|
Removes a user-defined function. |
|
Removes a server-level credential from the server. |
|
Removes a database scoped credential from the current virtual database. |
|
Accepted for SQL Server compatibility; a no-op. |
Sensitivity classification#
Statement |
Description |
|---|---|
Adds or removes a data-sensitivity classification (label and information type) on table columns. |