I am trying to create a stored procedure in MySQL using a delimiter like this:
use am; DELIMITER $$ CREATE PROCEDURE addfields() BEGIN DECLARE done INT D
I have created a simple MySQL procedure as given below:
DELIMITER // CREATE PROCEDURE GetAllListings() BEGIN SELECT nid, type, title FROM node where type = 'lms_listing' order by nid desc; END // DELIMITER;
Kindly follow this. After the procedure created, you can see the same and execute it.