complex in clause

3 views
Skip to first unread message

Glauco Uri

unread,
May 26, 2010, 10:35:52 AM5/26/10
to sqlal...@googlegroups.com
What is the best practice for this case?

"select * from my_tbl where (a,b) in ((1,1),(2,2))"


It seems to me that in clause is a column attribute so i don't figure
how to sqlalchemyfy this where condition

Thank you in advance
Gla


--
Glauco Uri

Prometeia SpA
Via G. Marconi, 43 - 40122 Bologna
Via Gonzaga, 7 - 20123 Milano
Via Tirso, 26 - 00198 Roma
Italia

e-mail : glauc...@prometeia.it
phone : +39 051 6480911
---------------------------------------------------------------------------
Il contenuto e gli allegati di questo messaggio sono strettamente confidenziali, e ne sono vietati la diffusione, la riproduzione e l'uso non autorizzato. Il suo contenuto non costituisce impegno da parte della Societᅵ salvo accordo scritto tra quest'ultima ed il destinatario. Qualora il presente messaggio Le fosse pervenuto per errore, La preghiamo di comunicare immediatamente al mittente l'errata ricezione e di distruggere quanto ricevuto (compresi i file allegati) senza farne copia.
Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non rivelare il contenuto della corrispondenza tra altri soggetti, salvo piᅵ grave illecito, ed espone il responsabile alle relative conseguenze.

This e-mail (and any attachment(s)) is strictly confidential and for use only by intended recipient(s). Any use, distribution, reproduction or disclosure by any other person is strictly prohibited. The content of this e-mail does not constitute a commitment by the Company except where provided for in a written agreement between this e-mail addressee and the Company. If you are not an intended recipient(s), please notify the sender promptly and destroy this message and its attachments without reading or saving it in any manner.
Any non authorized use of the content of this message constitutes a violation of the obligation to abstain from learning of the correspondence among other subjects, except for more serious offence, and exposes the person responsible to the relevant consequences.
---------------------------------------------------------------------------


Michael Bayer

unread,
May 26, 2010, 11:05:47 AM5/26/10
to sqlal...@googlegroups.com
search the docs for "tuple_".


On May 26, 2010, at 10:35 AM, Glauco Uri wrote:

> What is the best practice for this case?
>
> "select * from my_tbl where (a,b) in ((1,1),(2,2))"
>
>
> It seems to me that in clause is a column attribute so i don't figure how to sqlalchemyfy this where condition
>
> Thank you in advance
> Gla
>
>
> --
> Glauco Uri
>
> Prometeia SpA
> Via G. Marconi, 43 - 40122 Bologna
> Via Gonzaga, 7 - 20123 Milano
> Via Tirso, 26 - 00198 Roma
> Italia
>
> e-mail : glauc...@prometeia.it
> phone : +39 051 6480911
> ---------------------------------------------------------------------------

> Il contenuto e gli allegati di questo messaggio sono strettamente confidenziali, e ne sono vietati la diffusione, la riproduzione e l'uso non autorizzato. Il suo contenuto non costituisce impegno da parte della Società salvo accordo scritto tra quest'ultima ed il destinatario. Qualora il presente messaggio Le fosse pervenuto per errore, La preghiamo di comunicare immediatamente al mittente l'errata ricezione e di distruggere quanto ricevuto (compresi i file allegati) senza farne copia.
> Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non rivelare il contenuto della corrispondenza tra altri soggetti, salvo più grave illecito, ed espone il responsabile alle relative conseguenze.


>
> This e-mail (and any attachment(s)) is strictly confidential and for use only by intended recipient(s). Any use, distribution, reproduction or disclosure by any other person is strictly prohibited. The content of this e-mail does not constitute a commitment by the Company except where provided for in a written agreement between this e-mail addressee and the Company. If you are not an intended recipient(s), please notify the sender promptly and destroy this message and its attachments without reading or saving it in any manner.
> Any non authorized use of the content of this message constitutes a violation of the obligation to abstain from learning of the correspondence among other subjects, except for more serious offence, and exposes the person responsible to the relevant consequences.
> ---------------------------------------------------------------------------
>
>

> --
> You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
> To post to this group, send email to sqlal...@googlegroups.com.
> To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
>

Glauco Uri

unread,
May 27, 2010, 3:33:10 AM5/27/10
to sqlal...@googlegroups.com
Michael Bayer ha scritto:

> search the docs for "tuple_".
>
>
wonderful!

thank you
Gla

--
Glauco Uri

Prometeia SpA
Via G. Marconi, 43 - 40122 Bologna
Via Gonzaga, 7 - 20123 Milano
Via Tirso, 26 - 00198 Roma
Italia

e-mail : glauc...@prometeia.it
phone : +39 051 6480911
---------------------------------------------------------------------------

Il contenuto e gli allegati di questo messaggio sono strettamente confidenziali, e ne sono vietati la diffusione, la riproduzione e l'uso non autorizzato. Il suo contenuto non costituisce impegno da parte della Societ� salvo accordo scritto tra quest'ultima ed il destinatario. Qualora il presente messaggio Le fosse pervenuto per errore, La preghiamo di comunicare immediatamente al mittente l'errata ricezione e di distruggere quanto ricevuto (compresi i file allegati) senza farne copia.
Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non rivelare il contenuto della corrispondenza tra altri soggetti, salvo pi� grave illecito, ed espone il responsabile alle relative conseguenze.

Reply all
Reply to author
Forward
0 new messages