Delphi FireDAC Tip: Write Database Independent SQL Commands With Escape Functions

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
FireDAC Tip: Write Database Independent SQL Commands With Escape Functions
February 6, 2021 by Konstantin Tomov

Escape sequences allow for writing DBMS-independent SQL commands. The sample predefines some escape function sequences. To execute a predefined escape function, right-click the Function edit box and choose a predefined escape function from the Для просмотра ссылки Войди или Зарегистрируйся. Moreover, the sample allows you to write your own function. To this end, write text into the Function edit box and press Enter. Then, the sample uses the Для просмотра ссылки Войди или Зарегистрируйся, Для просмотра ссылки Войди или Зарегистрируйся, Для просмотра ссылки Войди или Зарегистрируйся and Для просмотра ссылки Войди или Зарегистрируйся methods of the Для просмотра ссылки Войди или Зарегистрируйся interface to process the escape function command text. Note: Go to the following Для просмотра ссылки Войди или Зарегистрируйся to see the syntax of the escape function sequences.

Location​

You can find the EscapeFunctions sample project at:
  • Start | Programs | Embarcadero RAD Studio Sydney | Samplesand then navigate to:
    • Object PascalDatabaseFireDACSamplesPhys LayerIFDPhysCommandEscapeFunctions
  • Subversion Repository:
    • You can find Delphi code samples in Для просмотра ссылки Войди или Зарегистрируйся. Search by name into the samples repositories according to your RAD Studio version.

How to Use the Sample​

  1. Navigate to the location given above and open EscapeFunctionsdproj.
  2. Press F9 or choose Run > Run.
  3. Interact with the sample:
    1. Right-click the Function edit box and select a predefined escape function sequence.
    2. Write your own escape function and press Enter.
1612628834476.png

Files​

File in DelphiContains
EscapeFunctions.dproj
EscapeFunctions.dpr
The project itself.
fEscapeFunctions.pas
fEscapeFunctions.fmx
The main form.

Implementation​

To preset the Для просмотра ссылки Войди или Зарегистрируйся sequences, the sample configures the following components at design time using the Для просмотра ссылки Войди или Зарегистрируйся:
Moreover, when you run the application, you can interact with the sample using the following objects:
In the link below you will redirected to the original post of Embarcadero:
Для просмотра ссылки Войди или Зарегистрируйся
Для просмотра ссылки Войди или Зарегистрируйся