extract generated id by column name