1 drop-columns
The drop-columns element removes one or more existing attributes (columns) in the definition of an existing table.
<drop-columns
table='table'
onexception='onexception'
>
<column /> +
</drop-columns>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atable | string | Name of the table that contains the columns. | |||
Aonexception | string | ignore | Behavior in case of error. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecolumn | Columns to be deleted in the table. It is necessary to specify the name. |
1.1 Example
In the following example, column 'numero' is deleted in table 'entidad'.
Example
Copy
<xsql-conversion> <drop-columns table='entidad'> <column name='numero' /> </drop-columns> </xsql-conversion>