結果 : sql if then set variable