The efficient way to prepare your variables is test the query in
the
postgres front-end (psql) watch the result from the query and
set
your variable up according to that result.
Good luck,
Anis WN
________________________________
15 Mbytes Free Web-based and POP3
Sign up now: http://www.gawab.com