結果 : how to set a sql variable with query result