UPDATE calls
SET close_date = TO_DATE(p_close_date, 'DD/MM/YYYY')
WHERE calls.ID = TO_NUMBER (p_callerID);
(AND...)
Hi there
just wondering if anyone can help me i have basically finished my application and am adding validation (etc). In my program i have many small update statements as above, however i would like to add an additional AND clause to these statements.
The clause i require would be used if for example a user had entered an update screen then gone for lunch, returns and then goes to update the record. However during this time the record may have already been updated. Therefore i want a clause that checks that the passed value(p_close_date) is still the value of (p_close_date) at the time the update occurs.
If anyone has any ideas this will be greatly appreciated!!
SET close_date = TO_DATE(p_close_date, 'DD/MM/YYYY')
WHERE calls.ID = TO_NUMBER (p_callerID);
(AND...)
Hi there
just wondering if anyone can help me i have basically finished my application and am adding validation (etc). In my program i have many small update statements as above, however i would like to add an additional AND clause to these statements.
The clause i require would be used if for example a user had entered an update screen then gone for lunch, returns and then goes to update the record. However during this time the record may have already been updated. Therefore i want a clause that checks that the passed value(p_close_date) is still the value of (p_close_date) at the time the update occurs.
If anyone has any ideas this will be greatly appreciated!!