Вниз
Скачать: CL | DM;

MySql_Запрос   Найти похожие ветки 

← →
Undert ©   (2003-12-15 15:00) [0]

Типа есть 2 таблицы, в них есть одинаковый столбец eid. Как сделать один запрос так, что бы он возвратил из первой таблицы все линейки, чьи eid не присутствуют во второй ?


← →
Mike Kouzmine ©   (2003-12-15 15:01) [1]

лефт джоин с
вер с.еид из нулл


← →
Undert ©   (2003-12-15 15:02) [2]

Всё так понятно ... =)
Может лучше пример покажешь ?


← →
Mike Kouzmine ©   (2003-12-15 15:07) [3]

select a.eid from a left join b on a.eid = b.eid where a.eid is null


← →
Mike Kouzmine ©   (2003-12-15 15:08) [4]

select a.eid from a left join b on a.eid = b.eid where b.eid is null


← →
Undert ©   (2003-12-15 15:24) [5]

Типа посылает в баню ...


← →
JibSkeart ©   (2003-12-15 15:27) [6]

select *from table where not exists (select * from table2 where table.id = table2.id)


← →
Undert ©   (2003-12-15 15:46) [7]

You have an error in your SQL syntax near "(select * from events where usr29.eid=events.id)" at line 1
:(((


← →
JibSkeart ©   (2003-12-15 17:56) [8]

а ты полный запрос покажи как ты енто делаешь


← →
Undert ©   (2003-12-15 18:14) [9]

// $query = ("select * from usr$userid where not exist (select * from events where usr$userid.eid=events.id)");
// $result = mysql_query($query);


← →
Undert ©   (2003-12-15 18:14) [10]

$userid = 29



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.019 c
3-11780
Darrin
2003-12-10 11:02
2004.01.05
ADO + *.dbf


14-12133
Beaver
2003-12-13 14:21
2004.01.05
Глюки компиляции


8-12001
xxxCrazyManxxx
2003-09-03 14:24
2004.01.05
Помогите закрасить например круг.


14-12040
Nikolay M.
2003-12-11 10:59
2004.01.05
Раздел с задачками на разминку мозгов


14-12110
Undert
2003-12-14 18:13
2004.01.05
Арестовали Хусейна...




   Наверх