SQL Introduction - Type of SQL Statements (DDL, DML, DCL, TCS, SCS)
SQL Introduction - Type of SQL Statements (DDL, DML, DCL, TCS, SCS)
Search on Way2Tutorial.com
Home HTML CSS Java Script j-Query XML Ajax SQL PL/SQL Tutorial Index
Popular Pages
HTML5 Tags References
SQL Constraints
PL/SQL Tutorial
CSS Properties
http://www.way2tutorial.com/sql/oracle_sql_introduction_type_of_sql_statement.php 1/3
2/14/2017 SQLIntroductionTypeofSQLStatements(DDL,DML,DCL,TCS,SCS)
SQL SELF Join
SQL Cross Join
SQL UNION Clause
SQL Function
SQL Function
The ; means terminate the current statement execute it and store it to the "SQL buffer", whereas the / executes
whatever statement script is in the current "SQL buffer".
Statement Description
CREATE Create new database/table.
ALTER Modifies the structure of database/table.
DROP Deletes a database/table.
TRUNCATE Remove all table records including allocated table spaces.
RENAME Rename the database/table.
Statement Description
SELECT Retrieve data from the table.
INSERT Insert data into a table.
UPDATE Updates existing data with new data within a table.
DELETE Deletes the records rows from the table.
MERGE (also called UPSERT) statements to INSERT new records or UPDATE existing records
MERGE
depending on condition matches or not.
LOCK TABLE statement to lock one or more tables in a specified mode. Table access denied to
LOCK TABLE
a other users for the duration of your table operation.
CALL Statements are supported in PL/SQL only for executed dynamically. CALL a PL/SQL program
EXPLAIN PLAN or EXPLAIN PATH access the data path.
Statement Description
GRANT Gives privileges to user for accessing database data.
REVOKE Take back for given privileges.
http://www.way2tutorial.com/sql/oracle_sql_introduction_type_of_sql_statement.php 2/3
2/14/2017 SQLIntroductionTypeofSQLStatements(DDL,DML,DCL,TCS,SCS)
ANALYZE ANALYZE statement to collect statistics information about index, cluster, table.
To track the occurrence of a specific SQL statement or all SQL statements during the user
AUDIT
sessions.
COMMENT Write comment to the data table.
Statement Description
COMMIT Permanent work save into database.
ROLLBACK Restore database to original form since the last COMMIT.
SAVEPOINT Create SAVEPOINT for later use ROLLBACK the new changes.
SET TRANSACTION command set the transaction properties such as read-write/read only
SET TRANSACTION
access.
PL/SQL Transaction Commit, Rollback, Savepoint, Autocommit, Set Transaction read more.
Statement Description
ALTER SESSION statement to modify conditions or parameters that are affect to your
ALTER SESSION
database connection.
SET ROLE SET ROLE statement to enable or disable the roles that are currently enabled for the session.
Like Tweet
Tweet +1
Share Share Pin It
Web Development Tutorials: HTML | CSS | Java Script | XML | Ajax | SQL | PL/SQL | More Tutorials...
About Way2Tutorial: Home | Terms of use | Validate by: XHTML 1.0 Transitional
Report Error: Suggestion/Page Bug |2010-2017| www.way2tutorial.com
http://www.way2tutorial.com/sql/oracle_sql_introduction_type_of_sql_statement.php 3/3