Simple SQL question - Mailing list pgsql-sql

From Daniel Henrique Alves Lima
Subject Simple SQL question
Date
Msg-id 404C7EE3.8010006@yahoo.com.br
Whole thread Raw
List pgsql-sql
Hello, everybody.
   I've a simple question about SQL usage but i don't know even i can 
formulate this question. Well, i will try :   I've a teacher_course table with columns cd_course, cd_teacher => 
teacher_course(cd_teacher,cd_course) and i've a set of pairs that 
contains the values for these columns, like {(1,2),(23,11),(563,341),...}.   Is there a way to build a query to select
rowsthat matchs these 
 
pairs ? Like a "in" extension (or something else) :

select * from teacher_course where (cd_course,cd_teacher) in 
((1,2),(23,11),(563,341))

?

       I would appreciate any help. Thanks in advance.



pgsql-sql by date:

Previous
From: Radu-Adrian Popescu
Date:
Subject: Re: Login information in system tables
Next
From: Daniel Henrique Alves Lima
Date:
Subject: Functional index and string concatenation