1 SQL Native

There is also the possibility of writing SQL statements in native mode using the nativesql tag. In the SQL Objects this tag must be used to perform transactions (delete, update). The delete, update tags are only available in XSQL-UDF (wic_xudf_object), XSQL-UDP (wic_xudp_object) and XSQL-Triggers (wic_trig_object).

A simple example of a sentence could be this:

It allows to indicate optimization directives for the execution SQL statement in a database with ids engine.

<  />
Example
Copy
<nativesql>
    DELETE FROM table WHERE column = 'val1';
</nativesql>

This tag has an attribute to indicate in which database engine this SQL statement can be executed. In case of none indicated, it is executed in all the engines.

<nativesql
    ids='y|yes'
    iwa='y|yes'
    db2u='y|yes'
    db2i='y|yes'
    oracle='y|yes'
    postgres='y|yes'
    sqlserver='y|yes'
    mysql='y|yes'
    access='y|yes'
/>