我收到此错误:ORA-00904: "M": invalid identifier --> if I put ('M','F') //单引号我收到此错误消息:PLS-00103: Encountered the symbol "M"当期待以下之一时:* & = - + ; </ > at in is mod 余数 not rem return 返回 <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ 之间成使用|| 多组批量成员 SUBMULTISET_ --> 如果我删除约束,则将正常创建表
这是我的代码
EXECUTE IMMEDIATE 'CREATE TABLE dependents
( Id NUMBER(6)
, FirstName VARCHAR2(20)
, LastName VARCHAR2(25)
CONSTRAINT dep_last_name_nn NOT NULL
, Birthdate Date
, Relation VARCHAR2(20)
, Gender char(1)
, RelativeId Number(6)
, CONSTRAINT pk_dependent primary key (Id)
, CONSTRAINT ck_gender CHECK(Gender in("F","M"))
)';