... |
... |
@@ -9,16
+9,12 @@ |
9 |
9 |
== Creating a database query == |
10 |
10 |
|
11 |
11 |
{{id name="data_db_query"/}} |
12 |
|
-{{figure image="data_db_query_de.png"}}Configuration screen for creating a database query in: (1) list of existing DB queries, (2) editor for defining the SQL query, (3) settings of the DB query, (4) console for testing the DB query.{{/figure}} |
|
12 |
+{{figure image="data_db_query_de.png"}}Creating a database query in {{formcycle case="dat"/}}{{/figure}} |
13 |
13 |
|
14 |
|
-* Open the module "Database queries" and click "New" {{ficon name="plus-circle-outline"/}} in the header of the list (see [[figure>>||anchor="fig_data_db_query"]]). |
15 |
|
-* The following data is needed for a Database query: |
16 |
|
-** **Name**: A unique name for the database query |
17 |
|
-** **Description**: An optional description for the database query |
18 |
|
-** **Connection**: The [[Database connection>>doc:DBConnections]] that should be used |
|
14 |
+* Enter a unique name. |
|
15 |
+* Select a database connection |
|
16 |
+* Enter the SQL statement to be executed for the query in the editor (see [[figure>>||anchor="data_db_query"]]). |
19 |
19 |
|
20 |
|
-* Enter the **SQL statement** to be executed for the query in the editor (see [[figure>>||anchor="data_db_query"]]). |
21 |
|
- |
22 |
22 |
The entered SQL statement is executed as a prepared statement, which prevents SQL injection attacks. You should not and need not use inverted commas (` or '). Also, you can use question marks ( ? ) as placeholders to build queries dynamically. |
23 |
23 |
|
24 |
24 |
== Using the database query == |