MySQL stored procedure return null -
i have stored procedure out parameter (code):
select code = right(concat(repeat(0, 6), (select max(convert(code, int)) + 1 enterprises)), 6)
if exec it, return null value, if execute single query, works right. why?
rename parameter, try write (parameter name code_param
) -
select right(concat(repeat(0, 6), (select max(convert(code, int)) + 1 enterprises)), 6) code_param;
Comments
Post a Comment