4D v16SQL |
||
|
4D v16
SQL
SQL
In addition to the manipulations explained in the video, you should also note that: We cannot use pointers or array elements in an SQL request because the interpreter does not take them into account. In this case, it is often preferable to set up the query in the form of text and to execute it using the EXECUTE IMMEDIATE command. `VARIABLE TYPING IMPERATIVE, otherwise the query generates an error This selects the last name and ID in the Technicians table and transfer them into the 2 arrays. In this video, we're going to learn how to implement simple SQL commands that are integrated into 4D programming in two forms:
In addition to the 4D language, we can integrate SQL commands into 4D as you do in other tools:
These commands can also easily be integrated into your existing development projects. We're going to take our Statistics form to calculate the same array based on SQL commands:
Note the syntax which indicates to 4D to transfer the result into the arrays. We use the variable name preceded by the “:” (colon).
When the method is executed:
and whether we choose one or the other of the options, we still obtain the same result. Another way of programming, especially with this first part, would be to write it as follows:
which gives us the exact same result.
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
Self-training ( 4D v16) |