I've used SearchCursor to return the single value of a record (8 digit number)
for row in arcpy.da.SearchCursor(table, ['PID']): if row is not None: ID = row break
Now I would like to use 'ID' in a query.
arcpy.SelectLayerByAttribute_management(Table2, "NEW_SELECTION",'ID' == ID)
This is not a valid expression and I'm not sure how to make the keyword ID usable.