I am trying to write a python code for select analysis.
FIPS: column in feature nameofinputfeature whose values needs to be compared with OFIPS
OFIPS: variable whose value is known each time the code is run.
I am having a problem in syntax of the {where clause}
my code is:
arcpy.Select_analysis("nameofinputfeature", "C:\\a.shp", '"FIPS" = %OFIPS%')
'"FIPS" = %OFIPS%'to'"FIPS" = {}'.format(OFIPS)(assuming OFIPS is a variable in your code) – KHibma Apr 26 '17 at 13:50