版權聲明:本文為博主原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。
本文鏈接:https://blog.csdn.net/sq8706/article/details/7077148
1.更改表名
alter table 表名 rename to 新表名
2.更改字段名
alter table 表名 rename 字段名 to 新字段名
3,更改字段類型
如:ID 字段 原類型為 character varying(50) 新類型為integer
其中,ID中原有數據為1,2,3等數字
用如下語句更改
alter table dbo.titemtype alter column id type integer using to_number(id,'9');
————————————————
版權聲明:本文為CSDN博主「sq8706」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/sq8706/article/details/7077148
