We have a simple sql script which needs to be executed against a MySQL database and we would like print log statements on the progress of the script (e.g. Inserted 10 record
Just to make your script more readable, maybe use this proc:
DELIMITER ;; DROP PROCEDURE IF EXISTS printf; CREATE PROCEDURE printf(thetext TEXT) BEGIN select thetext as ``; END; ;; DELIMITER ;
Now you can just do:
call printf('Counting products that have missing short description');