I have a view. I want a function which returns rows from the view; however, I need to change one value in each of the rows I return.
I can do this using select and writing all the field names in the select clause and listing all the values including the one I change, but this makes the code very obscure.
Seems like I want a very light weight temporary table. I want to write something like:
update { select * from myView where f(row,x,y) }
set column = y
where x and y are arguments to my function, column is a column name from myView, and f is another function.
Is there something like this I can write? Thanks.