|
связи
|
|||
---|---|---|---|
#18+
Необходимо выбрать из одной таблице все id, который не встречаются в другой. Пробовал: select id from tab1, tab2 where tab1.id <> tab2.id; Result: out of memory. Думаю мускуль пытается возвратить всевозможные комбинации. ... |
|||
:
Нравится:
Не нравится:
|
|||
27.12.2001, 09:49 |
|
связи
|
|||
---|---|---|---|
#18+
А так ? select id from tab1 left join tab2 on tab1.id = tab2.id where tab2.id is null ... |
|||
:
Нравится:
Не нравится:
|
|||
27.12.2001, 14:43 |
|
|
start [/forum/topic.php?fid=47&tid=1856408]: |
0ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
170ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
1ms |
others: | 245ms |
total: | 508ms |
0 / 0 |