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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -