Have you finished the entire request? Try setting a separator and use it after END so that the server knows that you have finished the command.
delimiter // CREATE PROCEDURE fill_points( IN size INT(10) ) BEGIN DECLARE i DOUBLE(10,1) DEFAULT size; DECLARE lon FLOAT(7,4); DECLARE lat FLOAT(6,4); DECLARE position VARCHAR(100);
Also by
While DELETE FROM TABLE deletes all data from the table, the TRUNCATE table makes it faster. Unless you have good reason to use DELETE (they exist), TRUNCATE may be what you want.
Konerak
source share