从命令中的第 35 行开始出错:
ALTER TABLE lee_person
ADD CONSTRAINT check_person_type
CHECK(CASE WHEN UPPER(person_type) = 'EMPLOYEE'
THEN employment_date IS NOT NULL
AND manager_id IS NOT NULL
WHEN UPPER(person_type) = 'CLIENT'
THEN employment_date IS NULL
AND manager_id IS NULL
END)
错误报告:
SQL Error: ORA-00905: missing keyword
00905. 00000 - "missing keyword"
*Cause:
*Action: