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.
我知道您可以使用数据集/数据表从您的 C# 代码向 SQL Server 2005 表中进行批量 XML 插入。是否可以做同样的事情但作为删除?
您可以通过两种方式删除数据
DELETE FROM Schema.TableName WHERE Condition = Value
或者核爆它
TRUNCATE TABLE Schema.TableName
现在,如果要基于 XML 文件批量删除行,则必须将数据导入临时表或将其作为行集打开,然后执行JOINorEXISTS删除。
JOIN
EXISTS