mysql - pass a wildcard as IN parameter to stored procedure -


is possible pass wildcard character in parameter when calling stored procedure (jsp mysql)

if have (in stored procedure)-

create definer=`root`@`localhost` procedure `duration`(in varassetid varchar(25), in vardtmin datetime, in vardtmax datetime) 

this works fine if calling -

call duration(1157, '2015-06-29 11:47:28', '2015-07-02 11:47:28'); 

but not -

call duration('%', '2015-06-29 11:47:28', '2015-07-02 11:47:28'); 

or other wildcard character combination. not want have change stored procedure if possible.

thoughts appreciated


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -