SQL HELP

Поиск
Список
Период
Сортировка
От Simeó Reig
Тема SQL HELP
Дата
Msg-id 000b01c2be56$86178b30$0500a8c0@incofisa.com
обсуждение исходный текст
Ответ на Re: Upgrading  (Patrick Nelson <pnelson@neatech.com>)
Список pgsql-general
I've two tables  A and B:

Table A
--------
idTableA (Primary key)
otherFields


table B
--------
idTableB
idTableA
otherFields

Primary key (idTableB, idTableA)

I need to known idTableB from table B where have idTableA=1 but not have any
idtable=2

table B
-------
idtableB        idTableA   OtherFields
1                            1                ----
1                            2                ----
2                            1                -----
3                            1                ------

The result must be 2 and 3.

Thanks a lot  !!


В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Fix FK deadlock, but no magic please
Следующее
От: "Andy Kriger"
Дата:
Сообщение: setting a connection timeout?