Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. with arcpy.da.SearchCursor(table1,["Code1","Code2","Code3"],where_clause = sqlfinal) as curtable:
  2. for rowt in curtable:
  3. s = rowt[1]
  4. with arcpy.da.SearchCursor(table2,["Name","Code2","Code4"]) as curs:
  5. for rows in curs:
  6. if rows[1] == rowt[1]:
  7.  
  8. vtab.append([rowt[0],rows[0],rowt[2]])
  9. parameters[5].value = vtab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement