...
In this example, {optional_date} refers to a column of type date and is optional. When its empty in your form, NULL is inserted fulfilling the MySQL requirement otherwise the value in the field will be inserted.
Queries with dollar sign or space in a column name
Queries with a dollar sign ($) or space in a column name like the one shown below may cause an invalid xml error.
Code Block |
---|
<retrieve>
<statement>
SELECT id, tenant, role, de$cription FROM roles;
</statement>
</retrieve> |
The workaround to avoid this error is to use an 'as' clause in the query like this:
Code Block |
---|
<retrieve>
<statement>
SELECT id, tenant, role, de$cription as description FROM roles
</statement>
</retrieve> |
Stored Procedures
You can also execute stored procedures via the database connector. Here is an example of a mySql stored procedure.
...