说我的表是员工表,我添加了一个代码列.现在我必须防止插入MGR和mgr.
这意味着我不能让2行具有不区分大小写的值.
如何添加检查约束?
create unique index <index_name> on <tablename>(lower(<column_name>))