Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Problem with select by attributes

$
0
0
I've got problem with python to use select by attributes to my layer called "World Cities". I type this script:

arcpy.SelectLayerByAttribute_management ("World Cities","NEW_SELECTION","CITY_NAME" = 'Abancay')

and I see :
Runtime error SyntaxError: keyword can't be an expression (<string>, line 1)

When I'm trying this tool in arcgis not by python everything is ok, but in script I see this error. Please help!

Viewing all articles
Browse latest Browse all 2485

Trending Articles