Setting parameters for an SQL statement 

Procedure

To set parameters for an SQL statement, insert square brackets in all the places where variable entries are possible. A prompt may be formulated as a variable input. This prompt appears in the dialog box where the text for the variable part(s) of the SQL statement is entered.

Various sets of parameters can be stored for each SQL statement.

Table Article with Article No. and Unit Price Columns

If you want to set parameters for the columns Article No. and Unit Price , you can set the following parameters among the selection criteria:

SELECT  "Article No.", "Unit Price" FROM "Article"
WHERE  "Article No." > [article number (of):]
AND  "Article No
. " < [article number (up to):]
AND  "Unit Price" <= [upper price limit:]

Make sure you use the correct syntax.

If you want to compare a CHAR column with a parameter, the parameters must also be enclosed by quotation marks:

"Name" = '[Name:]'

By setting parameters you can also replace entire sections of an SQL statement.

You can formulate a SELECT and, for example, add a WHERE condition using a parameter:

SELECT * FROM USERS
[Your WHERE condition:]