if not exists(select * from 表 where ...)
begin 
continue
end
else
begin
select * from 表 where ...
end