oracle - 01403. 00000 'No data found' -
when want update or insert row in zip not in zipcodes table, got 'no data found' error. confused because assigned default value 67226 validzip variable, how can find no data? thanks.
if select ... ... statement returns no rows, raises no_data_found exception. whether target of into has been initialized or not irrelevant.
you need add exception handler catch no_data_found exception. or, alternative change query return row; example select count(*) return either 0 or 1.
Comments
Post a Comment