結果 : sql select column based on variable