AnsweredAssumed Answered

Problem with select by attributes

Question asked by maarissa on Jan 18, 2014
Latest reply on Jan 18, 2014 by rfairhur24
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!

Outcomes