- DQL: (Data QueryLanguage) data query language (manipulate data)
select ... from ... where
- DML: (Data Manipulation Language) data manipulation language (can control transaction submission and manipulate data)
insert、update、delete
- DDL: (Data Definition Language) database schema definition language (implicitly commit transactions, operate databases, tables)
create databse、create table、create view、creaate index、alter table、alter view、drop table、drop view、truncate table
- DCL: (Data Control Language) data control language (operating database users or role permissions)
grant、revoke、create user
- TCL (Transaction Control Language) transaction control language
rollback、commit、savepoint
(1) Explicitly submit
Use the commit command:
SQL>COMMIT;
(2) Implicit submission The
following commands are submitted automatically, and rollback is not supported:
ALTER, AUDIT, COMMENT, CONNECT, CREATE, DISCONNECT, DROP, EXIT, GRANT, NOAUDIT, QUIT, REVOKE, RENAME.
(3) Automatic submission
If AUTOCOMMIT is set to ON, the system will automatically submit after the insert, modify, and delete statements are executed.
SQL>SET AUTOCOMMIT ON;