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'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aids | string | It applies to the ids database engine. | |||
Aiwa | string | It applies to the iwa database engine. | |||
Adb2u | string | It applies to the db2u database engine. | |||
Adb2i | string | It applies to the db2i database engine. | |||
Aoracle | string | It applies to the Oracle database engine. | |||
Apostgres | string | It applies to the postgres database engine. | |||
Asqlserver | string | It applies to the sqlserver database engine. | |||
Amysql | string | It applies to the mysql database engine. | |||
Aaccess | string | It applies to the access database engine. |