这个存储过程哪里错了? 用Mysql5.6.5里运行是正确的,现在用5.1,就不对了。。。该怎么改呢? drop procedure if exists usp_add_comment; CREATE PROCEDURE usp_add_comment( v_gameid int, v_commenter varchar(20), v_content varchar(255), v_startRow int, v_endRow int, out v_count int ) begin set v_startRow=v_startRow-1; insert into t_comment(GameId,Commenter,Content) values(v_gameid,v_commenter,v_content); commit; select count(1) into v_count from t_comment where GameId=v_gameid; select Commenter,CommentTime,Content from t_comment where GameId=v_gameid order by CommentTime desc limit --这行出错,如果直接写上数字的话,不会出错的。 v_startRow,v_endRow; end;