sql语句对表字段进行修改

不同数据库修改语句命令如下:

1. MYSQL

rename table table1 to table2;

2. SQL SERVER

EXEC sp_rename 'table1', 'table2';

3. Oracle

alter table table1 rename to table2

4. db2

rename table table1 to table2;

5 informax

rename table(表名) table1(字段1) to table2(字段2)

猜你喜欢

转载自www.cnblogs.com/cyb-652356/p/10705915.html