Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE PROCEDURE `Storedproc`(IN getwhereconditon varchar(1000))
- BEGIN
- set @param=getwhereconditon ;
- SET @S=concat('Select * from table where (1)',@param);
- PREPARE stmt1 FROM @s;
- EXECUTE stmt1;
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement