1 rename-column
The 'rename-column' element changes the name of an existing column in an existing table.
<rename-column
table='table'
name='name'
to='to'
onexception='onexception'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atable | string | Name of the table that contains the column. | |||
Aname | string | Old name of the column whose name is being changed. | |||
Ato | string | New name of the column whose name is being changed. | |||
Aonexception | string | ignore | Behavior in case of error. |
1.1 Example
In the following example, the column 'prince' in the table 'royal' is given the new name 'symbol'.
Example
Copy
<xsql-conversion> <rename-column table='royal' name='prince' to='symbol' /> </xsql-conversion>