Skip to content

Commit dc2c799

Browse files
authored
Create update-delete-insert.sql
1 parent 8067b30 commit dc2c799

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
START TRANSACTION;
2+
UPDATE DEPARTMENT SET code='MATH' WHERE id=5;
3+
COMMIT;
4+
5+
START TRANSACTION;
6+
INSERT INTO DEPARTMENT(id,name,code) VALUES(6,"Mathematics","MA");
7+
COMMIT;
8+
9+
START TRANSACTION;
10+
DELETE FROM DEPARTMENT WHERE id=6;
11+
COMMIT;

0 commit comments

Comments
 (0)