Simple SQL question

Поиск
Список
Период
Сортировка
От Daniel Henrique Alves Lima
Тема Simple SQL question
Дата
Msg-id 404C7EE3.8010006@yahoo.com.br
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Radu-Adrian Popescu
Дата:
Сообщение: Re: Login information in system tables
Следующее
От: Daniel Henrique Alves Lima
Дата:
Сообщение: Functional index and string concatenation