maoyi

Local variables in SQL statement of Python GIS

Discussion created by maoyi on Oct 27, 2011
Latest reply on Oct 28, 2011 by maoyi
What is the appropriate format to use local variables in SQL statements under python GIS?

I came across error messages when I'm running the following:

bas=24
gp.Select(input, Output_Feature_Class, "\"BAS\"= bas")

However, it is ok if I run: gp.Select(input, Output_Feature_Class, "\"BAS\"= 24")

Appreciate any potential help.

Xi

Outcomes