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
Post a Comment