DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`expeditionTruck_List`() BEGIN SELECT id truckFk, eta, description Destino FROM roadmapStop WHERE eta BETWEEN util.VN_CURDATE() AND util.dayend(util.VN_CURDATE()) ORDER BY eta; END$$ DELIMITER ;