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