Any help on how to properly format the where clause in the following code would be greatly appreciated. I get an Invalid Expression error despite whatever combinations I try. v is a string value. Thanks.
for v in lstFCCvalues:
outfeature = os.path.join(fdstarget, v + 'Roads')
if arcpy.Exists(outfeature): arcpy.Delete_management(outfeature)
where = arcpy.AddFieldDelimiters(intable, fcc) + ' = ' + v
arcpy.Select_analysis(intable, outfeature, where)
except Exception as e:
ERROR 000358: Invalid expression "FCC" = A00
Failed to execute (Select).