麻烦大家帮我看下这个mysql存储过程 关于limit的
mysql>delimiter;;mysql>createprocedureproc_dataPager(inbeint,lenint)->begin->select*f...
mysql> delimiter ;;
mysql> create procedure proc_dataPager(in be int,len int)
-> begin
-> select * from tbl_task order by taskid desc limit be,len;
-> end;;
ERROR 1064 : 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 'be,len;
select * from tbl_task order by taskid desc limit 0,5; 没有错 为什么存储过程报错呢 ?
先谢谢了 展开
mysql> create procedure proc_dataPager(in be int,len int)
-> begin
-> select * from tbl_task order by taskid desc limit be,len;
-> end;;
ERROR 1064 : 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 'be,len;
select * from tbl_task order by taskid desc limit 0,5; 没有错 为什么存储过程报错呢 ?
先谢谢了 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询