[PIPython] problema tuple
Mariano Di Felice
mardif
Mar 12 Apr 2005 16:02:54 CEST
Matteo Giacomazzi ha scritto:
> Ciao Mariano,
>
>> "select * from <table> where <column> in %s" % tuple([x for x in
>> t])[1:-1]
>>
>> che ne dite???
>
>
> ...non mi sembra funzionare...
>
> Ciao,
> Matteo
>
>------------------------------------------------------------------------
>
>_______________________________________________
>La mailing list di python.it
>python a lists.python.it
>http://lists.python.it/cgi-bin/mailman/listinfo/python
>
>
hai ragione....
la sintassi giusta è:
"select * from <table> where <column> in %s" % str([x for x in t])[1:-1]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mardif.vcf
Type: text/x-vcard
Size: 274 bytes
Desc: not available
Url : http://list.zope.it/pipermail/python/attachments/20050412/099c4b14/mardif.vcf
More information about the Python
mailing list