I have a table in a geodatabase.
It looks like this:
id table_na 0 1 ER_ASTENOT_ASTOTA 1 2 INT_ASTENOT_ASTOTA 2 3 ER_ASTENOT_ASTTOM
It has more columns though.
Can you tell me how to read the column table_na line by line?
Example, reading by a txt:
with open(input()) as txtfile: #insert directory of txt x = txtfile.readlines()
But I have to read from this specific column only.
Also tried this (with cursor):
env.workspace = r"C:\Users\user\Desktop\05052\MyProj.gdb" datasetList = arcpy.ListTables("*") for dataset in datasetList: with arcpy.da.SearchCursor(dataset, "*") as cur: for row in cur: print row
But gives all that is in that table in one line.