开发者

Creating DataTable and Copy existing DataTable schema?

开发者 https://www.devze.com 2023-02-11 04:01 出处:网络
I\'m using vb.net 2010. I have a DataSet with a Table and data. MyData开发者_如何转开发Set1 which contains Table1

I'm using vb.net 2010. I have a DataSet with a Table and data. MyData开发者_如何转开发Set1 which contains Table1

I want to create another table that is the same as the Table1 but without data, but it should have the columns, etc.

How can I do this?


You're looking for the Clone method.
Note that it won't work for tables with foreign keys.

0

精彩评论

暂无评论...
验证码 换一张
取 消