Does anyone know how to do this? For the life of me I can't remember =/ I don't think I have to run a subquery of the recordset, I think there's a function that will allow me to take the first record as the result right?
I've been so stupid as define an incorrect datatype for field (set varchar instead of int) - the table already has loads od data so I cannot just drop and re-create. Is there a way of changing the type ? Or perhaps create a new column, copy over the data and drop the old column - and then rename the newly created column ?
Argh.. Sorry for being a jackass - That's how it goes when you post a question while you're on the way out of the door
Thanks for the answer.
However, when running the update commmand, I get the following error:
ERROR: column "temp_qty" is of type integer but expression is of type character varying
HINT: You will need to rewrite or cast the expression.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.