1 cast

Convert an expression or column to the type indicated in the type attribute.

<cast
    type='type'
    size='size'
    ids='y|yes'
    db2='y|yes'
    oracle='y|yes'
>
    <string /> *
</cast>
Example

Convert column c of type char to an integer.

Copy
<select>
  <columns>
     <cast type='INT'>c</cast> <!-- Formato XML -->
  </columns>
  <from table='test'/>
</select>

2 char

Convert a column or numeric expression to text. It is useful when concatenating strings with numbers.

<char>
    <expresion /> *
</char>
Example
Copy
<select>
   <columns>
      'remesa' || <char>numrem</char>
   </columns>
   <from table='cremesa'/>
</select>

3 smallint

It allows to convert a column or numerical expression into smallint data type.

<smallint>
    <expresion /> *
</smallint>
Example
Copy
<select>
   <columns>
      <smallint>10</smallint>
   </columns>
   <from table='cremesa'/>
</select>