我正在尝试通过执行以下 SQL 语句在表上创建检查约束:
alter table "ApplicationConfiguration" add
constraint APPLICATIONCONFIGURATION_CK1
CHECK (ValueType IN ('string', 'int', 'decimal, 'date', 'time', 'datetime', 'binary'))
但我收到以下错误:
ORA-00907: Missing right parenthesis
我完全迷路了。我究竟做错了什么?
附加信息:
- 该
ApplicationConfiguration
表存在并且具有nvarchar(32) not null
名为的类型的列ValueType
- 数据库是 Oracle 10g Express Release 10.2.0.1.0
- 我正在使用 Web 客户端 (Application Express 2.1.0.00.39) 执行该语句
- 数据库用户具有 DBA 权限
谢谢!