Вниз
Скачать: 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.028 c
9-11759
Madromik
2003-06-11 14:19
2004.01.05
Image move


4-12191
Yuri Btr
2003-11-04 16:00
2004.01.05
Способен ли сервис получать messages ?


14-12150
men
2003-12-12 15:30
2004.01.05
Gde knigy po linux vziat?


1-11957
Denisiy
2003-12-19 16:11
2004.01.05
Access Violation - к чему бы это?


1-11905
Alex-21
2003-12-21 21:39
2004.01.05
TimeToStr(Now)




   Наверх