Am Donnerstag, 7. Februar 2008 10:03:55 schrieb Phil Thompson:
>
> Dynamically create the string you want...
>
> db.query("""
>                       SELECT OS, IP_Adress
>                       FROM ServerDB
>                       WHERE IP_Adress = '%s'
>                       """ % chosen)
>

Why not use prepare and bindValue?

-- 
Dr. Sibylle Koczian
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to