You can use fake query as follows:
OPEN resultIN FOR
select * from dual where 1=2;
-- if you want one row also then use
OPEN resultIN FOR
select case when 1=2 then 1 end as dummy_row from dual;
It is important to use OPEN resultIN FOR
otherwise application which is going to use it will directly throw closed cursor error. (Cursor is not opened.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…