×

Notice

The forum is in read only mode.

duplicate key insert

  • Elias
  • Elias's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
3 months 2 weeks ago #3296 by Elias
When inserting into a table using a select from another table and creating an error with a duplicate key, is it possible to find the value of the key that was duplicated?
  • Elias
  • Elias's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
3 months 2 weeks ago #3297 by Elias
better to use a loop likeSTART THE LOOP:
  • read the record
  • check if key exists
  • if not insert
  • if yes write to table PROBLEMATIC_RECS
  • IS THIS LAST RECORD IF YES EXIT
GO TO START THE LOOPDo something like this with PL/SQL or PHP or PRO*C
Time to create page: 0.063 seconds

Site Info

V. Katsanioti,

Russia,

Kaliningrad Oblast.

matizegr@yahoo.com

Visit counter

United States of America (the) 75.9% United States of America (the)
Russian Federation (the) 12.6% Russian Federation (the)
China 5.6% China
Singapore 1.1% Singapore

Total:

41

Countries
00002425
Today: 18
Yesterday: 58
This Week: 269
Last Week: 381
This Month: 18
Last Month: 2,327

Who's Online

We have 48 guests and no members online