0
我在Mysql的以下過程中執行。在Mysql 5.1中創建過程時出錯
DROP procedure IF EXISTS `wm_batch_list`;
DELIMITER $$
/*!50003 SET @[email protected]@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` procedure `wm_batch_list`(IN p_start int(11),IN p_range int(11))
BEGIN
select * from batch ORDER BY start_year DESC limit p_start,p_range;
END $$
/*!50003 SET SESSION [email protected]_SQL_MODE */ $$
DELIMITER ;
,但我得到這個錯誤:
Error code 1064, SQL state 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p_start,p_range;
END' at line 3
請建議我在哪裏做的錯誤?