dear all
I have function >> spi_exec "Update $1 setadv_amt=adv_amt-$OLD(adv_amt)+$OLD(gadv_amt) where $2=''$OLD($2)'' "
how to change plpgsql code
ps. $1 a variable
thanks
--