1 add-columns
The add-columns element adds one or more attributes (columns) to the definition of an existing table.
<add-columns
table='table'
onexception='onexception'
>
<column /> +
</add-columns>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atable | string | Table name. | |||
Aonexception | string | ignore | Behavior in case of error. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecolumn | Columns to add to the table structure. |
1.1 Example
In the following example, column 'numero' is added to table 'entidad'.
Example
Copy
<xsql-conversion> <add-columns table='entidad'> <column name='numero' type='smallint' /> </add-columns> </xsql-conversion>