MySQL Forums
Forum List  »  Quality Assurance

Procedure giving Syntax Error
Posted by: vaibhav parashar
Date: February 01, 2008 12:58AM

Hello all i am using below code , i am able to grab what the reason of syntax error

Plz help.

Thanks in advance

CREATE DEFINER=`root`@`localhost` PROCEDURE `getRecords`(in tablename varchar(25),in sortby varchar(25),in sortorder varchar(5), in currentp int,in pagesize int)
select count(*) as total from tablename;
select * from tablename order by sortby limit currentp, pagesize;

Options: ReplyQuote

Written By
Procedure giving Syntax Error
February 01, 2008 12:58AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.