Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用仅允许 3 个不同值的新列“主题”来更改表“导师”:“阅读”、“数学”、“ESL”。
到目前为止我所拥有的:
ALTER table tutor add subject varchar2 (10) CHECK ('reading', 'math', 'ESL');
我不断得到这个:
ORA-00920: 无效的关系运算符
任何帮助表示赞赏。
尝试这个
ALTER table tutor add subject varchar2 (10) add constraint sb CHECK(subject IN ('reading', 'math', 'ESL'));