-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

Is it possible, in SQLAlchemy, to express this query?

CREATE TEMP TABLE foo (
    x INTEGER,
    y INTEGER
);

INSERT INTO foo VALUES (10, 11);
INSERT INTO foo VALUES (1, 2);

manlio=> SELECT * FROM foo WHERE (x, y) in (VALUES (1, 2), (3, 4));
 x | y
- ---+---
 1 | 2
(1 riga)


This should be standard SQL.
It is supported by PostgreSQL [1], but SQLite fails with a syntax error.


[1] http://www.postgresql.org/docs/8.4/static/sql-values.html


Thanks  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuNNh0ACgkQscQJ24LbaUTuowCffJyiWt4/Hi9adT0Vrk4K5/6A
B8EAnA2JOmsHBQVnPiEHsrFZIW19iLx6
=ijKV
-----END PGP SIGNATURE-----

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

Reply via email to