Skip to content

Commit b8ecdb8

Browse files
committed
drop table 스크립트 추가
1 parent d72a3ce commit b8ecdb8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

resources/drop_sample_tables.sql

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
-----------------------------------------------------------
4+
-- 외래키 삭제
5+
-----------------------------------------------------------
6+
ALTER TABLE OrderDetails DROP CONSTRAINT FK_OrderDetails_Orders;
7+
ALTER TABLE Orders DROP CONSTRAINT FK_Orders_Customers;
8+
9+
10+
11+
-----------------------------------------------------------
12+
-- 테이블 삭제
13+
-----------------------------------------------------------
14+
DROP TABLE OrderDetails;
15+
DROP TABLE Orders;
16+
DROP TABLE Customers;
17+
18+
19+
20+

0 commit comments

Comments
 (0)