09-09-2007 5:54 AM
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
09-09-2007 6:01 AM
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.
a®
09-09-2007 6:01 AM
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.
a®