Singlestore Database can we write Cursor with exception handling of EXCEPTION WHEN ER_INTO_VARIABLES_NO_ROWS THEN

See if this helps: