```
DROP PROCEDURE IF EXISTS raise;

CREATE PROCEDURE raise(@uld int)
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN 
    SET @uld = (select ULD_ID from doctor_personal_details)
    IF(@uld = NULL) THEN
        SET MESSAGE_TEXT = ' error occurred';
END;

```

I have column `ULD_ID` in `doctor_personal_details` and I need to display error message when there is no data in `ULD_ID`.