I am tryin to execute an INSERT statement and want to
check if it violates the primary key constraint of the
table.
say:
i have a table named TABLE1 (COL1, COL2) with COL2
being the primary key.
i need to insert
(ABC , 1 )
(ABC, 2)
DEF, 3)
(EFG, 1)
as the 4th tuple violates the primary key
constraint... it should not be inserted.
my code currently does not insert it... but while
doing so...gives some errors.
is there ne way...this can be done w/o the errors??