You can use Table 26 as a quick reference aid. For a complete discussion of all the statements, including their syntax, refer to the SQL Reference.
Table 26. SQL Statements (DB2 Universal Database)
SQL Statement | Dynamic1 | Command Line Processor (CLP) | Call Level Interface3 (CLI) | ||
---|---|---|---|---|---|
ALTER { BUFFERPOOL, NODEGROUP, TABLE, TABLESPACE, TYPE, VIEW } | X | X | X | ||
BEGIN DECLARE SECTION2 | |||||
CALL | X9 | X4 | |||
CLOSE | X | SQLCloseCursor(), SQLFreeStmt() | |||
COMMENT ON | X | X | X | ||
COMMIT | X | X | SQLEndTran, SQLTransact() | ||
Compound SQL | X4 | ||||
CONNECT (Type 1) | X | SQLBrowseConnect(), SQLConnect(), SQLDriverConnect() | |||
CONNECT (Type 2) | X | SQLBrowseConnect(), SQLConnect(), SQLDriverConnect() | |||
CREATE { ALIAS, BUFFERPOOL, DISTINCT TYPE, EVENT MONITOR, FUNCTION, INDEX, NODEGROUP, PROCEDURE, SCHEMA, TABLE, TABLESPACE, TRIGGER, TYPE, VIEW } | X | X | X | ||
DECLARE CURSOR2 | X | SQLAllocStmt() | |||
DELETE | X | X | X | ||
DESCRIBE8 | X | SQLColAttributes(), SQLDescribeCol(), SQLDescribParam()6 | |||
DISCONNECT | X | SQLDisconnect() | |||
DROP | X | X | X | ||
END DECLARE SECTION2 | |||||
EXECUTE | SQLExecute() | ||||
EXECUTE IMMEDIATE | SQLExecDirect() | ||||
EXPLAIN | X | X | X | ||
FETCH | X | SQLExtendedFetch()7, SQLFetch(), SQLFetchScroll()7 | |||
FREE LOCATOR | X4 | ||||
GRANT | X | X | X | ||
INCLUDE2 | |||||
INSERT | X | X | X | ||
LOCK TABLE | X | X | X | ||
OPEN | X | SQLExecute(), SQLExecDirect() | |||
PREPARE | SQLPrepare() | ||||
RELEASE | X | ||||
RENAME TABLE | X | X | X | ||
REVOKE | X | X | X | ||
ROLLBACK | X | X | SQLEndTran(), SQLTransact() | ||
select-statement | X | X | X | ||
SELECT INTO | |||||
SET CONNECTION | X | SQLSetConnection() | |||
SET CONSTRAINTS | X | X | X | ||
SET CURRENT DEGREE | X | X | X | ||
SET CURRENT EXPLAIN MODE | X | X | X, SQLSetConnectAttr() | ||
SET CURRENT EXPLAIN SNAPSHOT | X | X | X, SQLSetConnectAttr() | ||
SET CURRENT FUNCTION PATH | X | X | X | ||
SET CURRENT PACKAGESET | |||||
SET CURRENT QUERY OPTIMIZATION | X | X | X | ||
SET EVENT MONITOR STATE | X | X | X | ||
SET transition-variable5 | X | X | X | ||
SIGNAL SQLSTATE5 | X | X | X | ||
UPDATE | X | X | X | ||
VALUES INTO | |||||
WHENEVER2 | |||||
|