W idealnej sytuacji aplikacja musi przygotować instrukcję SQL jeden raz i uruchomić ją kilka razy.
Ideally, an application must prepare a SQL statement one time and run it several times.
Do obiektu polecenia przekazuje się instrukcję SQL lub procedurę składowaną, która wykonuje operację na bazie danych.
You supply the command object with the SQL statement or stored procedure that performs the operation on the database.
Napisz instrukcję SQL do następujących pytań: 1
Write a SQL statement for the following queries: 1
Można wymienić kursor tak, że może to być określone w programie do pobierania i przetwarzania wierszy zwróconych przez instrukcję SQL, po jednym na raz.
You can name a cursor so that it could be referred to in a program to fetch and process the rows returned by the SQL statement, one at a time.
Aby uniknąć ataków SQL injection oraz aby zwiększyć wydajność wykonywania często używanych instrukcji SQL, można "przygotować" instrukcję SQL z opcjonalnymi symbolami zastępczymi (ang. placeholders) parametrów, które to będą zastąpione przez aktualne parametry podczas procesu przypinania parametrów.
To avoid SQL injection attacks and to improve performance of executing repeatedly used SQL statements, one can "prepare" an SQL statement with optional parameter placeholders that are to be replaced with the actual parameters during the parameter binding process.
Aby uniknąć ataków SQL injection oraz aby zwiększyć wydajność wykonywania często używanych instrukcji SQL, można "przygotować" instrukcję SQL z opcjonalnymi symbolami zastępczymi (ang. placeholders) parametrów, które to będą zastąpione przez aktualne parametry podczas procesu przypinania parametrów.
Binding Parameters To avoid SQL injection attacks and to improve performance of executing repeatedly used SQL statements, one can "prepare" an SQL statement with optional parameter placeholders that are to be replaced with the actual parameters during the parameter binding process.
Raport powiązany to taki, który może wyświetlać dane i który dla właściwości Źródło rekordów ma określoną tabelę, zapytanie lub instrukcję SQL.
A bound report is one that can display data and has a table, query, or SQL statement specified in its Record Source property.
CDbCommand: reprezentuje instrukcję SQL, wykonywaną dla bazy danych,
CDbCommand: represents an SQL statement to execute against a database.
Jeżeli chcesz wpisać własną instrukcję SQL, kliknij przycisk Zaawansowane.
If you want to write your own SQL statement, click Advanced.
Poniżej znajduje się przykład pokazujący jak utworzyć dropIndex() buduje i wykonuje instrukcję SQL usuwającą index.
The dropIndex() method builds and executes a SQL statement for dropping an index.
Użytkownik, który zna język SQL, może przeglądać i zmieniać instrukcję SQL SELECT.
If you know SQL, you can view or change the SQL SELECT statement. standard font
/ addColumn() buduje i wykonuje instrukcję SQL dodające nową kolumnę do tabeli.
Builds and executes a SQL statement for truncating a DB table.
Można na przykład ustawić właściwość RecordSource (ŹródłoRekordów) formularza na instrukcję SQL zwracającą pojedynczy rekord i zmieniać źródło rekordów formularza w zależności od kryterium wybranego przez użytkownika.
For example, you can set a form's RecordSource property to an SQL statement that returns a single record and change the form's record source depending on criteria selected by the user. Example