![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 40 Pomógł: 0 Dołączył: 13.09.2006 Ostrzeżenie: (0%) ![]() ![]() |
Problem tradycyjny z wyciaganiem danych z wielu tabel.
caly czas myslalem i robilem to za pomoca skladni select tab1.pole1, tab2.pole1 from tab1, tab2 where ..... teraz w roznych kursach i ksiazkach spotykam sie ze skladnia oparta na join .. on. efekt z reguly jest taki sam. Zwaracam sie z pytaniem czy ten pierwszy sposob ktorego uzywam jest zly? niewydajny? w zlym stylu? |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 288 Pomógł: 12 Dołączył: 2.12.2005 Ostrzeżenie: (0%) ![]() ![]() |
To co robisz, to jest dokładnie INNER JOIN w skróconej formie. Raczej nie ma różnicy w wykonaniu zapytania (w jego czasie wykonania także).
Cytat SQL:2003 specifies two different syntactical ways to express joins. The first, called "explicit join notation", uses the keyword JOIN, whereas the second uses the "implicit join notation". The implicit join notation lists the tables for joining in the FROM clause of a SELECT statement, using commas to separate them. Thus, it always computes a cross-join, and the WHERE clause may apply additional filter-predicates. Those filter-predicates function comparably to join-predicates in the explicit notation. http://en.wikipedia.org/wiki/Join_(SQL) Ten post edytował tommy4 26.05.2008, 10:15:18 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 22.06.2025 - 14:30 |