結果 : sql save list of ids in variable