sql - Why does this 'modify table' statement fail? -


I am trying to add a 'no blank' barrier in a column in Oracle 9.

  Modify ALTER TABLE user_roles group_id varchar2 (36 characters) Set no; However, operation fails with a strange error:  
  Error Report: SQL Error: ORA-12987: Drop Column with Other Functions Can not add 12987 00000 - "Can not combine drop columns with other tasks" * Reason: Attempted to combine the drop column with other optional tab operations was attempted. * Task: Make sure that the drop column is the only operation specified in ALTER TABLE.   > 

Remove set :

  modify ALTER TABLE user_roles group_id varchar2 (36 characters) zero  

And yes, the errors of Oracle can be very confusing.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -