我收到此錯誤如何添加檢查約束日期列
ORA-02438:當我執行此查詢
列檢查約束不能引用其他列alter table Issue modify Issue_Date not null check (Issue_Date <= sys_date);
以及我也要添加這個條件也(issue_date<return_date
);
,當我試圖這樣
alter table Issue
add constraint ck_Issue_Date not null check (Issue_Date <= sys_date);
錯誤ORA-00904:無效的標識符
在SYSDATE – JohnLBevan 2014-09-28 20:31:50
刪除下劃線隨着虛擬列(11版或更高版本),你可以使用檢查約束SYSDATE的幫助:http://rwijk.blogspot.nl /2007/12/check-constraints-with-sysdate.html – 2014-09-29 11:21:32
如果刪除下劃線,則會出現此錯誤: ORA-02436:在CHECK約束中錯誤地指定了日期或系統變量 – 2014-10-01 19:21:23