qry = "[UID] <> '"+uid+"' and [STATE] = '"+state+"'" gp.Select_analysis(USA_State, USA_State_Select, qry)
You need to build the string outside of the tool perameters so that you can wrap parts of it in quotes for the tool. Remember this isnt just a string, its and SQL statement so you have to comply with SQL conventions.>>>where="UID <> \'" +str(uid) + "\' AND STATE = \'" +state +"\'""UID <> 'oid' AND STATE = 'state'"gp.Select_analysis(USA_State, USA_State_Select, where)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.