I\'m writing a procedure, and i need to check whether my select query returned an empty record or not. (In this example whether there is no x,y shelf)
How can i do t
Use an exception handler
Begin select column into variable from table where ...; -- Do something with your variable exception when no_data_found then -- Your query returned no rows -- when too_many_rows -- Your query returned more than 1 row -- end;