getIdCols function

get Id columns