結果 : sql select list of ids into variable