Types of SQL Statements
Types of SQL Statements
Data definition language (DDL) statements let you to perform these tasks:
1. Create, alter, and drop schema objects
2. Grant and revoke privileges and roles
3. Analyze information on a table, index, or cluster
4. Establish auditing options
5. Add comments to the data dictionary
The DDL statements are:
ALTER ... (All statements except ALTER SESSION and ALTER SYSTEM
ANALYZE
ASSOCIATE STATISTICS
AUDIT
COMMENT
CREATE
DISASSOCIATE STATISTICS
DROP ... (All statements beginning with DROP)
FLASHBACK ... (All statements beginning with FLASHBACK)
GRANT
NOAUDIT
PURGE
RENAME
REVOKE
TRUNCATE
PL/SQL does not support session control statements. The session control
statements are:
ALTER SESSION
SET ROLE