結果 : sql set variable to value from select