Pozostałe frameworki mają bardziej radykalne podejście używając tylko jedno zapytanie SQL.
Other frameworks take a more radical approach by using only one SQL query.
Interpretuje zapytanie SQL i łączy informacje z różnych tabel.
Interprets an SQL query and combines information from various tables.
Generuje ono duże, złożone zapytanie SQL poprzez połączenie wszystkich potrzebnych tabel.
It generates a big complex SQL statement by joining all needed tables.
Duże zapytanie SQL jest preferowane w wielu przypadkach, ponieważ upraszcza filtrowanie oparte na kolumnie w relacyjnych tabelach.
A big SQL statement is preferrable in many cases since it simplifies filtering based on a column in a related table.
Z nowym podejściem potrzebujemy wywołać dwa zapytanie SQL.
Te pola są zawsze nieaktywne - połączenie i zapytanie SQL są wyświetlane w celach informacyjnych.
These fields are always disabled-the connection and SQL query are displayed for your information.
Proste zapytanie SQL może szybko wydobyć z systemu wymagane dane szczegółowo, wydajnie i online.
A simple SQL query can quickly extract the required data from the system at a high level of detail, efficiently and online.
Przyczyn może być wiele, ale najczęstszym powodem wstrzymania replikacji jest błędne zapytanie SQL, które nie może się wykonać.
There can be many reasons for this, but the most common reason for stopping replication is an erroneous SQL query that cannot be executed.
Powinno się wykonywać zapytanie SQL tak rzadko jak to możliwe, dodatkowo powinno się optymalizować zapytania wewnętrznie.
It should execute SQL statements as few times as possible, and it should optimize statements internally.
Funkcja crosstab() przyjmuje jako argument tekst zawierający zapytanie SQL, które po wykonaniu zwraca tabelę do transformacji.
The crosstab() function takes one parameter with SQL query as string and returns a transformed table.
Po restarcie serwera MySQL, logujemy się do niego (mysql -u root -p) i wydajemy następujące zapytanie SQL.
After restarting MySQL server, we log into it (mysql -u root -p) and issue the following SQL query.
Najprościej mówiąc, te cztery linie wykonują zapytanie SQL dla tabeli comment, aby pobrać komentarze powiązane z konkretnym postem (przekazywanym w parametrze URL nazwanym 'id').
Basically, these four lines will handle a SQL query to the Comment table to get the comments related to the current Post (the one designated by the URL parameter id).
Zamiast używania rekordu aktywnego napisaliśmy czyste zapytanie SQL i wywołaliśmy je przy użyciu połączenia do bazy danych.
Instead of using ActiveRecord, we write raw SQL statements and execute them with the database connection.