Additional parameters can be used both in SQL queries as well as in SQL commands. You can use these parameters to dynamically design queries or create conditions that expand or narrow the result space. With commands, you can use parameters to write signal values in a database.

Parameters can generally only replace values.

You defined the parameters in the SQL statements and then linked with signals in ibaPDA. Proceed as follows here:

  1. Write an SQL statement containing parameters. Parameters are marked differently for the different database systems with the first character in the parameter name.

    • For SQL Server, PostgreSQL and MySQL, it is "@".

    • For Oracle and SAP HANA, it is ":".

  2. Then click on the green arrow between the windows. Example SQL query depending on the product ID with a parameter "myProduct_Ident".

    All parameters in the statement are transferred into the table in the right window. If there are already parameters there, you will be asked whether surplus parameters should be deleted.

  3. In the ibaPDA signal column, you can now select a signal that should determine the parameter value. All common signal types are permitted: Analog signals , digital signals and text signals.

  4. If necessary, you can delete individual parameters from the list. Click on the desired parameter and then on the <X> button in the SQL parameter column.

The selected signal provides a value for the parameter when executing the statement.

You can enter a value in the Test value column so that the statement can be executed, for example when testing or when validating to start the measurement. Simply enter the value as a text. The test value is correctly interpreted using the type of the assigned signal.

Digital signals have the values 0 or 1.