我正在運行這兩個命令來創建新表,但第二個創建表命令不斷給我錯誤。SQL創建表缺少圓括號
CREATE TABLE TEAMSTADIUM(
stadium_name varchar2(40) not null,
stadium_max_capcity number(10) not null,
stadium_field_serface varchar2(40) not null,
stadium_year_built number(4) not null,
stadium_location varchar2(40) not null,
Primary KEY(stadium_name)
)
CREATE TABLE TEAMINFO(
team_name varchar2(40) not null,
team_owner varchar2(40) not null,
team_coach varchar2(40) not null,
team_created Date() not null,
PRIMARY KEY(team_name)
foreign key(stadium_name) references TEAMSTADIUM(stadium_name)
)
,請發表您的錯誤消息(你應該總是這樣做) – 2013-04-09 23:38:23
我跑了第一個創建表命令,然後我得到的第二個 - ora-00907 – user1817081 2013-04-09 23:39:54