Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help in debugging querries 1

Status
Not open for further replies.

xenology

Programmer
May 22, 2002
51
US
How do you display messages while a query is running? For example, how would you do the "print" statement below?

select username from users where active=true;
if found then
print 'inside the if statement';
end if;

This is useful when debugging functions and you have multiple conditional statements and trying to determine where your code is not returning expected results.
**Note: using PGAdminIII or Navicat to write/test functions/queries.
thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top