I got a headache on writing an oracle sql. When my sql returns 0 row, I need it returns “empty” instead of returning 0 rows. For example,
select name from employee where id=1;
Result:
0 rows selected
I need it returns like this:
Empty
1 row selected
Since there is no such record in db, is there a way to do that? I do need it return a value. Thank you!
1 Answer