tokenise a string
Matthias Teege
matthias-dated at mteege.de
Sat Oct 9 09:54:17 EDT 2004
Moin,
I'm new to python. I try to build a "easy" search interface to a
database table in python. I have a input string like this:
"name=matthias;count>10" or this "location!=thisone". From this input
I try to build a SQL query like this: select * from tbl where
nme='matthias' and cnt > 10.
So I must parse the input, build tokens and map the fieldnames. Is
there a special modul which I can use or are the standard string
functions adequate?
Many thanks
Matthias
--
Matthias Teege -- http://www.mteege.de
make world not war
More information about the Python-list
mailing list