inputTable = r"C:\temp\test.gdb\blah" joinTable = r"C:\temp\test.gdb\lut" gp.makefeaturelayer(inputTable, "FL") gp.addjoin("FL","ID",joinTable,"ID") updateRows = gp.updatecursor("FL") updateRow = updateRows.next() while updateRow: if updateRow.getvalue("lut.ANIMAL_TYPE") == "CAT": updateRow.FOOD_TYPE = updateRow.getvalue("lut.ANIMAL_TYPE") + " FOOD" updateRows.updaterow(updateRow) updateRow = updateRows.next() del updateRow del updateRows
import arcgisscripting gp=arcgisscripting.create(9.3) gp.makefeaturelayer_management(r"C:\GIS Projects\CRW\TrakIt_Source_RS.gdb\Target_Data\parce_test", "parce_test") gp.addjoin("parce_test", "A1RENUM", r"C:\GIS Projects\CRW\parce_test_spatial_join.shp", "A1RENUM") cursor=gp.updatecursor("parce_test") row=cursor.Next() while row: row.Flood_zn = row.getvalue("parce_test_spatial_join.FLD_ZONE") cursor.updaterow(row) row=cursor.Next() del row del cursor