[Tutor] MySQLdb question

Patty patriciap.gu at gmail.com
Fri Apr 14 19:31:41 CEST 2006


> 
> for ahost,target in my_map:
>     cursor.execute("""SELECT %s FROM targets
>         WHERE target_name in (%s) """ %  (ahost, ",".join(target)))
> 

Hi again,

I'm confused   :-(  
I'm using an old version of python (2.3.4).  In my database, target_name is the
name of a column, not the name of a target.

Patty 






More information about the Tutor mailing list