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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -