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. |
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. |
Drop#
Statement |
Description |
|---|---|
Removes a virtual database. |
|
Removes a schema. |
|
Removes an index from a view. |
|
Removes a user-defined function. |