Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • How to do it?
  • Create an insertion request
  • Notes
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Creating an insert query
An insert query (corresponding SQL statement INSERT) is used to add records into a database file.
The following information is required to perform an insert query:
  • the data file into which the data will be inserted.
  • the items into which new values will be inserted.
For example, creating a new customer in the "Customer" data file:
Insert query
The query editor automatically generates the SQL code of this query.
To see the SQL code of a query:
  1. Display the popup menu of query graph.
  2. Select "SQL code".
You also have the ability to press the F2 key.
In our example:
'Accacia Avenue',


Reports & Queries cannot be used to create insert queries.
How to do it?

Create an insertion request

To create a new insert query:
  1. Click New among the quick access buttons.
    • The element creation window appears: click "Query".
    • The query creation wizard starts.
  2. Specify that you want to create an insert query ("Insert" option).
  3. If your project is linked to no analysis, specify the analysis to which the query will be attached.
    Go to the next step of the wizard.
  4. Select the data file into which the data will be inserted.
    Go to the next step.
  5. The new values will be inserted into the different items of the data file. Click the "Value/Parameters" column for each relevant item. A window allows you to select the value or the parameter to insert.
  6. Specify the value or the parameter containing the value to insert. The new values to insert can correspond to:
    • the default value defined in the analysis.
    • a value that must be specified. Specify this value.
    • a value contained in a parameter. Specify the name of the parameter.
    • a null value.
  7. Validate your choice.
  8. Repeat the operations 5 to 7 for each item into which a value must be inserted.
    Go to the next step.
  9. Type the query name (name of ".WDR" file corresponding to the query). This name will be used to identify the query in your programs.
  10. Specify the caption of the query by briefly describing the purpose of query. This caption will be used in the project documentation.
    Remark: The query name is automatically defined from the caption typed.
  11. Validate the query description. The graphic representation of query is automatically displayed in the query editor.
  • To modify the characteristics of a query: under the "Query" section, in the "Edit" group, click on "Description".. See Describing a query for more details.
  • To generate the SQL code corresponding to this query, select "SQL code" from the popup menu of the query. If changes are made in the query description, these changes will be automatically carried over into the corresponding SQL code.
  • You also have the ability to create a query from one or more data files described in the data model editor: to do so, drag the data files selected in the "Analysis" pane and drop them in the query editor.
  • The test of the created query can be run from the query editor. See Running the test of a query for more details.
See also
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment