我创建了一个名为 sv_hardware(column: ip_adrs) 的表。
现在我想创建一个表,其中 ip_adrs 将是外键,所以我编码:
Create table sv_req_info(
"server_no" number not null PRIMARY KEY,
"host_ name" varchar2(100),
"cur_ status" varchar2(100),
"loc " varchar2(100),
"buss_roles" varchar2(100),
"rack _no" varchar2(100),
"rk U_ consump" varchar2(100),
"Rmarks_owner" varchar2(100),
"ip_ adrs " varchar2(100) ,
"sv_type_cat" varchar2(100),
date_added date,
CONSTRAINT fk_sv_hardware
FOREIGN KEY (ip_adrs)
REFERENCES sv_hardware(ip_adrs));
发生错误ORA-00907: missing right parenthesis