By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,767 Members | 1,033 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,767 IT Pros & Developers. It's quick & easy.

Syntax question - compound value comparisons

P: n/a
I can do this:

SELECT * FROM library_items WHERE (li_lib, li_item) = (11080,123063);
li_lib | li_item
--------+---------
11080 | 123063

But not this:

SELECT * FROM library_items WHERE (li_lib, li_item) IN ( (11080,123063),
(11081, 122250) );
ERROR: syntax error at or near "11080" at character 59

Is this just a parser weakness (in which case, can I ask someone in core for a
TODO - tia) or is there some subtle reason why it isn't supposed to work.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.