...
Code Block |
---|
<retrieve> <statement> SELECT id, tenant, role, de$cription as description FROM roles </statement> </retrieve> |
Empty resultsets
If the results of a query are empty, the Database Connector returns an empty HTTP response. This is because the attribute emptyStringForEmptyResultSet="true" is configured by default. You may notice the error message below in the debug console when testing your forms if no rows are returned by a query.
Stored Procedures
You can also execute stored procedures via the database connector. Here is an example of a mySql stored procedure.
...