Arnau <[EMAIL PROTECTED]> writes: > I don't want, if it's possible, to create a function.
Unlike Oracle, PG makes a strong distinction between SQL and programmable languages (including plpgsql). You can't write plpgsql code without putting it into a function. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend