title: PHPMyAdmin select an integer and set into a variable
body: <p>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.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>declare pos_t int(2);
  
  set @pos_t = (Select range_position from LIST_PRODUCT where column1 = @variable1 and column2= @variable2 limit 1);
  </code></pre>
  
  <p>@pos_t returns always NULL</p>
  
  <p>I tried Cast, convert, but it didn't work.</p>