The above code is equivalent to using the following raw SQL statement for MySQL, which is less intuitive, more error prone, and may even have compatibility problems if you are using a different kind of database
Kod z przykładu jest odpowiednikiem poniższej komendy SQL dla MySQL, która jest mniej intuicyjna, bardziej podatna na błędy i, co bardzo prawdopodobne, niekompatybilna z innymi rodzajami baz danych
Alte rezultate
Instead of using ActiveRecord, we write raw SQL statements and execute them with the database connection.
Zamiast używania rekordu aktywnego napisaliśmy czyste zapytanie SQL i wywołaliśmy je przy użyciu połączenia do bazy danych.
You must supply values for every parameter before executing the SQL statement.
Musisz podać wartości dla każdego parametru przed wykonaniem instrukcji SQL.
The first SQL statement is performed after connecting to the database.
Pierwsza instrukcja SQL jest wykonywane po podłączeniu do bazy danych.
It generates a big complex SQL statement by joining all needed tables.
Generuje ono duże, złożone zapytanie SQL poprzez połączenie wszystkich potrzebnych tabel.
If you want to write your own SQL statement, click Advanced.
Jeżeli chcesz wpisać własną instrukcję SQL, kliknij przycisk Zaawansowane.
And for MySQL, some SQL statements may cause implicit commit.
Dla MySQL, część instrukcji SQL może powodować wywołanie niejawne polecenia COMMIT.
With union we can select more data in one sql statement.
Używając tej funkcji możemy wyciągnąć więcej danych z bazy w jednym zapytaniu.
In this new approach, we need to execute two SQL statements.
Z nowym podejściem potrzebujemy wywołać dwa zapytanie SQL.
The part of an SQL statement that specifies which records to retrieve.
Część instrukcji SQL, która określa rekordy do pobrania.
Useful when you are using static SQL statements at runtime.
Przydatne gdy używasz statycznych instrukcji SQL w czasie wykonywania.
Each execution of a SQL statement in the Query Store is logged.
Każde wykorzystanie bazy SQL jest zapisane w zapisie zapytań.
ORDER BY is usually the last item in an SQL statement.
Klauzula ORDER BY stanowi zazwyczaj ostatni element instrukcji SQL.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple