"Dale Harris" <itsupport@xxxxxxxxxxxxxx> writes: > In the following documentation it advises that the UPDATE statement should > be able to return a value into a variable in plpgsql. > http://www.postgresql.org/docs/8.3/static/plpgsql-statements.html > It works for the INSERT command, but not UPDATE. As was already suggested, if you want help on this you are going to need to exhibit a complete problem case. Blanket assertions that are demonstrably false don't advance the cause for anyone. regards, tom lane