我想要一個「不空」約束在Oracle中添加一列9爲什麼這個'修改表'語句失敗?
ALTER TABLE user_roles modify group_id varchar2(36 char) set not null;
但是,操作失敗,一個奇怪的錯誤:
Error report:
SQL Error: ORA-12987: cannot combine drop column with other operations
12987. 00000 - "cannot combine drop column with other operations"
*Cause: An attempt was made to combine drop column with other
ALTER TABLE operations.
*Action: Ensure that drop column is the sole operation specified in
ALTER TABLE.
任何想法,爲什麼這失敗了?
謝謝,OMG小馬 - 添加錯誤代碼是一個好主意。 – johnstok 2010-01-22 15:57:18