begin IF '[Param.1]' = 'S' OR '[Param.1]' = 'T' THEN select * from ULQUEUE; END IF; end;
Second: where you try to put this code? This is not SQL, but PL\SQL so you have to have some variable where you want to put query result like this:
select * from ULQUEUE;*
This of course works when your query returns only one row. Otherwise process data in the loop or put result into array.
declare x ULQUEUE%Rowtype; begin select * into x from ULQUEUE end;