My problem is just set the result of a query into a variable. I can do it in String, but in Integer. Although I tried many different solutions it doesn't work.
Here is my code :
declare pos_t int(2);
set @pos_t = (Select range_position from LIST_PRODUCT where column1 = @variable1 and column2= @variable2 limit 1);
@pos_t returns always NULL
I tried Cast, convert, but it didn't work.