Statement | Format | Relationship | Entities |
---|---|---|---|
ALTER TABLE |
ALTER TABLE <table-name> … |
DDL File Refers To Table |
Table attributes:
|
COMMENT |
COMMENT ON [TABLE] <table-name> … |
DDL File Refers To Table |
Table.Name = <table-name> |
CREATE ALIAS |
CREATE ALIAS <alias-name> ON <table-name> … |
DDL File Defines Table Table Represents Table |
Table attributes:
|
CREATE INDEX |
CREATE INDEX <index-name> ON <table-name> … |
DDL File Refers To Table |
Table.Name = <table-name> |
CREATE SYNONYM |
CREATE SYNONYM <ViewName> FOR <TableName> |
DDL File Defines Table Table Represents Table |
Table attributes:
|
CREATE TABLE |
CREATE TABLE <table-name>... [IN [DATABASE] [<database>.] <tablespace>] |
DDL File Defines Table |
Table attributes:
|
CREATE PROCEDURE |
CREATE (OR REPLACE)? PROCEDURE <procedure-name> … |
DDL File Defines Stored Procedure |
Program Entry Point:
|
CREATE VIEW |
CREATE VIEW <view-name> …AS SELECT … FROM <table-name> |
DDL File Defines Table Table Represents Table |
Table attributes:
|
Referential constraint |
FOREIGN KEY key REFERENCES <base-table>… |
DDL File Refers To Table |
Table.Name = <base-table> |
SET CURRENT SQLID |
SET CURRENT SQLID = 'user-name' |
sqlid = <user-name> |