October 11, 2010 at 12:08 pm
Can a function update data?
Example: Update mytable set fld = fld + 1
Mike
October 11, 2010 at 12:20 pm
no, but a procedure can.
a function is not allowed to do DML operations...UPDATE/DELETE...only select, or calculations based on the select.
a procedure is allowed to update data, and of course an update statement can incude a function that might be doing some portion of a calculation.
Lowell
October 13, 2010 at 11:22 pm
read the following article to understand more about functions
October 13, 2010 at 11:24 pm
and this one one too
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply