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

Query with variable with AND expression?

$
0
0
I have a query with a variable that points to a field value. It works great. How can I add a "AND" to include another variable in this expression? Thank you!!!

Code:

query = "FFYCounty" +"=" + "'"+ str(Countytxt)+"'"
   
    arcpy.SelectLayerByAttribute_management("TMP",  "NEW_SELECTION", query )


Viewing all articles
Browse latest Browse all 2485

Trending Articles