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.
我创建了一个包,它将记录插入到 3 个表中(每个表都有单独的流程),它工作正常。现在我想在插入之前从这 3 个表中截断数据。我已经编写了存储过程来截断这 3 个表中的数据,但没有成功。它适用于单个表。
在控制流上使用执行 SQL 任务,并在插入表操作发生之前添加此任务。在 Execute SQl 任务中添加以下代码
Truncate Table <Tbl_1> Truncate Table <Tbl_2> Truncate Table <Tbl_3>
您可以在“执行 SQL 任务”中编写删除语句,方法是用;. 你把任务放在你的流程之前:
;