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 a single field in a custom table

Former Member
0 Likes
790

hi all,

can u tell me hw could i insert a single field in the custom table.

i have abt 6 fields in the custom table.

5 fields are already populated...

i have to insert one field ..i dont want to use insert statement.

thanx in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
698

Use Update statement.

if you use modify ,it works like insert ( if no record exists) and also it works Update.

UPDATE dbtab SET f1 ... fn

Thanks

Seshu

hi all,

can u tell me hw could i insert a single field in the custom table.

i have abt 6 fields in the custom table.

5 fields are already populated...

i have to insert one field ..i dont want to use insert statement.

thanx in advance

4 REPLIES 4
Read only

Former Member
0 Likes
698

You wont need to insert a single field, as u said 5 fields are already populated and u need to modify the custom table with 6th field

Use Modify statement

Thanks.

regards

vinsee

Read only

Former Member
0 Likes
698

HI,

You can use UPDATE statement

UPDATE ztable SET SIXTH_FIELD = 'value'

WHERE key_field = 'asdf'.

Thanks

Naren

Read only

0 Likes
698

hi.

insert and update r working good for only one record.wht should be the logic if we have mulitple records. im writing insert and update in a loop.do i need to write commit or use append

Read only

Former Member
0 Likes
699

Use Update statement.

if you use modify ,it works like insert ( if no record exists) and also it works Update.

UPDATE dbtab SET f1 ... fn

Thanks

Seshu