MySql select in to two variables
===

I got a table of ids from 1 to 1000. How can I select to rows from my table and insert the result in to two variables that I declare?

Some thing like this:

    Select from table1 where id = 1 or id = 27 into var1, var2