Skip to content

Commit 84f1adb

Browse files
authored
Create create-table.sql
1 parent 9795fb2 commit 84f1adb

File tree

1 file changed

+8
-0
lines changed
  • sql-queries-11/duplicate-insert-row-same-table-with-auto-increment

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CREATE TABLE department_copy
2+
TABLE department;
3+
4+
DELETE
5+
FROM department_copy;
6+
7+
ALTER TABLE department_copy
8+
MODIFY COLUMN id INT UNIQUE NULL AUTO_INCREMENT;

0 commit comments

Comments
 (0)