Application Development 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: 

Updation Of DB table from table.

Former Member
0 Kudos

Hi ,

My requirements is I need to update the DB table and during updation only two fields are to be changed based on a condition, Rest of all the fields shud remain same. I passed the fields ( that are to be changed) using the work areas( Modify <table>) . but then whn i check in DB table a new record is getting created with just two fields that were passed and old record still exists and is not updated. Could you please tell me as how to create a updated row containing the old values + the fields that are updated.

Thanks

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

You can use update statement.

UPDATE tablename SET fieldname = value

WHERE based on the conditions.

If you are using Modify

if record doesnt exist it will be inserted on the basis of KEY

if esixts then it will be modified.on the basis of KEY

i.e. insert+update.

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

Hi,

You can use update statement.

UPDATE tablename SET fieldname = value

WHERE based on the conditions.

If you are using Modify

if record doesnt exist it will be inserted on the basis of KEY

if esixts then it will be modified.on the basis of KEY

i.e. insert+update.