‎2007 Aug 17 7:26 PM
Based on checking certain criteria i have to change the value of a field in data base table to a new one. Which one would be a better option Update or Modify......
‎2007 Aug 17 7:27 PM
‎2007 Aug 17 7:32 PM
HI,
Modify is better to avoid the multiple entries.
select single * from dbtable into wa where .......
wa-field3 = 'testing'.
modify dbtable from wa.
Regards
SAB
‎2007 Aug 17 7:43 PM
HI,
You can use modify always.. it does two things...
if record is already exist it acts as update
if record does not exist then it acts as insert.
if you are sure that the record already exist then use UPDATE..
Thanks
Mahesh
‎2007 Aug 17 7:49 PM
Record already exits..I'll the primary key of the table and replace one of the fields in that table.
So, I'll go for Update.
‎2007 Aug 17 7:51 PM
‎2007 Aug 17 7:58 PM
Hi,
It it is a standard table please do not go for direct update or modify. if it is a custom table and If you want to update the primary key itself , then delete the record and then modify. before deleting please check the dependencies
aRs