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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple selects in if else statements.

Status
Not open for further replies.

banccrop

Programmer
Jul 18, 2003
2
US
Hello all,

Here is my problem. I am writing a DB2 SQL stored procedure. Here is the main context:
if(true) then
select * from tableA
else
select * from tableB
endif;

How is this accomplished in DB2 SQL stored procedure?
I still have not found a way to accomplish this.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top