How can I drop a “not null” constraint in Oracle when I don't know the name of the constraint?
I have a database which has a NOT NULL constraint on a field, and I want to remove this constraint. The complicating factor is that this constraint has a system-defined name, and that constraint's name differs between the production server, integration server, and the various developer databases. Our current process is to check in change scripts, and an automated task executes the appropriate queries through sqlplus against the target database, so I'd prefer a solution that could just be sent straight into sqlplus. On my own database, the SQL to drop this would be: alter table MYTABLE drop