回答編集履歴
1
修正
test
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
外部キー制約はプライマリーキーに合わせる必要があります。
|
2
2
|
|
3
|
-
また削除
|
3
|
+
また作成や削除では依存関係の考慮が必要です。※作成は順序
|
4
4
|
|
5
5
|
以下の様にすると作成できます。
|
6
6
|
|
7
7
|
```SQL
|
8
8
|
|
9
|
-
drop table if exists usr;
|
9
|
+
drop table if exists usr cascade;
|
10
10
|
|
11
|
+
drop table if exists meeting_rooom cascade;
|
12
|
+
|
11
|
-
drop table if exists reservable_room;
|
13
|
+
drop table if exists reservable_room cascade;
|
12
14
|
|
13
15
|
drop table if exists reservation;
|
14
|
-
|
15
|
-
drop table if exists meeting_rooom;
|
16
16
|
|
17
17
|
create table usr(
|
18
18
|
|