DDL and DML Commands
DDL and DML Commands
DDL and DML Commands
Langua
Command List
ge
CREATE
DROP
DDL ALTER
RENAME
TRUNCATE
SELECT
INSERT
DML
UPDATE
DELETE
GRANT
DCL
REVOKE
START TRANSACTION
TCL COMMIT
ROLLBACK
DDL:
CREATE DATABASE explainjava;
DCL:
CREATE USER 'dmytro'@'localhost' IDENTIFIED BY '123';
TCL:
START TRANSACTION;
START TRANSACTION;
INSERT INTO student (name, lastname) VALUES ('Dmytro',
'Shvechikov');
COMMIT;
START TRANSACTION;
INSERT INTO student (name, lastname) VALUES ('Dmytro',
'Shvechikov');
ROLLBACK;