Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DATA base

Former Member
0 Likes
623

Hi

in my program i am inserting same data to database 2 times, but when i look at the data base its taking only one entry.

am using this statement INSERT ZPORDER FROM LV_ORDER2.

how to correct this ,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

Depending upon Key fields of Database table the record will be inserted. If you are inserting with the same Key fields then only 1 entry will be found.

5 REPLIES 5
Read only

Former Member
0 Likes
605

well a database has only UNIQUE entries. otherwise nothing would work.

NO database on the world will allow you to have duplicate records

Read only

Former Member
0 Likes
605

If the data in key fields of the table you are trying to insert is the same, then the data will be inserted only for the first insert. Subsequent inserts donot add the data in the database. Instead they give errors.

Read only

Former Member
0 Likes
606

Depending upon Key fields of Database table the record will be inserted. If you are inserting with the same Key fields then only 1 entry will be found.

Read only

0 Likes
605

thanks to all.

Read only

Former Member
0 Likes
605

HI,

DUPLICATE RECORDS ARE NOT POPULATED INTO DATABASE TABLES. ATLEAST ALL PRIMARY KEY FIELDS SHOULD BE MODIFIED SO THAT NON PRIMARY KEYS HAVE SAME DATA.

IF HELPFUL REWARD SOME POINTS.

WITH REGARDS,

SURESH ALURI.