結果 : sql set variable with if statement