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

inserting records from internal table to database table

Former Member
0 Likes
26,858

Hi all,

i want to insert records from internal table to zDatabase table, can u plz guide me which statement is better in performance to insert the records.

1) insert one by one record from internal table

loop at itab.

insert ztable from wa.

endloop.

2) insert total records at a time

INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.

or let me know if any other statement is there with high performance.

i internal table contains nearly 40000 records.

thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
11,910

The second one is the best ..

2) insert total records at a time

INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.

5 REPLIES 5
Read only

Former Member
11,911

The second one is the best ..

2) insert total records at a time

INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.

Read only

0 Likes
11,910

thanks for the reply srinivas.

Read only

Former Member
0 Likes
11,910

Hi,

Insert the entire table at atime rather than a record so as to increase the performance.

you can use INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.

or

MODIFY ZPRODUCT FROM TABLE GI_AFPO.

Regards,

Raj.

Read only

Former Member
0 Likes
11,910

Hi,

The second INSERT statement is better.

regards,

Ramya

Read only

Former Member
0 Likes
11,910

hi,,

go with second one

INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.

regards,

rekha