Python/Gadfly and SQL wildcards

Gordon McMillan gmcm at hypernet.com
Mon Jul 19 09:23:36 EDT 1999


Colm Rafferty writes:

> Does anyone know how to implement the wildcard in gadfly SQL?
> e.g.
> Select * from table where fieldname = 'A*'
> or
> Select * from table where fieldname like 'A*'
> 
> * does not work!
> Though it does in other SQL languages

In ANSI SQL, that would be "fieldname like 'A%'"

Last I used Gadfly, it didn't support 'like', so you're stuck with

..fieldname >= 'A' and fieldname < 'B'

or the same using "between".

- Gordon




More information about the Python-list mailing list