Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到任何关于我可以添加到 DataTable 的 DataColumns 数量存在限制的引用。DataTable 不会从 SQL 查询生成,而是从其他数据合成。
谢谢,马修
AddAt 和 RemoveAt 的方法签名以及 DataColumnCollection 类的 Item 都采用 Int32。这是 DataTable 类用来存储列的对象。
这意味着它可以有 2,147,483,647 列给或取 1 或 2 来衡量。:)