重命名COLUMNNAME并使用ADO.NET更改列的数据类型的表 [英] rename columnName and change column's data type in a table by using ADO.NET
本文介绍了重命名COLUMNNAME并使用ADO.NET更改列的数据类型的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能使用Ado.net命名现有表中的列,更改列的数据类型?
how can I by using Ado.net rename existing column in a table and changing a column's data type?
推荐答案
您可以致电该存储过程,如下:
You can call stored procedure for that, as follows
EXEC sp_rename 'MyTable.OldColumnName', 'NewColumnName'
见:中的 =http://www.functionx.com/vbasic/adonet/Lesson04.htm相对=nofollow > 本文
see section: Renaming a Column
in this Article
这篇关于重命名COLUMNNAME并使用ADO.NET更改列的数据类型的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文