I am trying to insert the values into the new table here. However, I get (ORA-00001: unique constraint (MYSCHEMA.SYS_C007106) violated) which it states the condo_id as unique. Even though I am not inserting the condo_id into the new table. How can I resolve this?
insert into large_condo
select location_num, unit_num, bdrms, baths, condo_fee, owner_num
from condo_unit
where sqr_ft > 1500;
Extra information:
The condo_id is the trigger. How can I bypass the trigger?
large_condotable because without that, we're having to guess what your problem is. The outline schema should include all the columns and their types, plus any constraints (especially unique or primary key constraints), and any triggers on the table. We probably don't need the schema of thecondo_unittable. Is there any danger thatlarge_condois a view on thecondo_unittable? (Pretty unlikely, but funnier things have been known!) - Jonathan Lefflerinsertstatement that doesn't list the columns, that implies that you must be providing a value for every column (otherwise, Oracle would have no idea which subset of columns you were trying to populate). If you're actually running theinsertstatement you posted here, you must be inserting a value forcondo_id. I don't know which column that is but give that primary keys are generally the first column of the table, I'd guess that you are trying to uselocation_numas thecondo_idwhich probably doesn't make sense and isn't unique. - Justin Cave