OA删除所有表单流程数据
2018-03-15 10:13
316 查看
--将删除所有的流程表单以及底表的数据。
数据无价,请谨慎使用。
declare @sql nvarchar(1000)
declare c1 cursor for
select 'truncate table '+name from sysobjects
where xtype='U' and name like 'formmain_%'
open c1
fetch next from c1 into @sql
while @@fetch_status=0
begin
exec(@sql)
fetch next from c1 into @sql
end
close c1
deallocate c1
数据无价,请谨慎使用。
declare @sql nvarchar(1000)
declare c1 cursor for
select 'truncate table '+name from sysobjects
where xtype='U' and name like 'formmain_%'
open c1
fetch next from c1 into @sql
while @@fetch_status=0
begin
exec(@sql)
fetch next from c1 into @sql
end
close c1
deallocate c1
相关文章推荐
- 通达OA工作流插件--保存OA流程中的所有附件+流程表单到指定目录(2013adv,2015,2016)
- 删除所有表中数据
- 删除表中所有数据,格式化表
- 删除sqlserver指定数据库的所有表的数据
- mac一键删除所有数据
- js获取form表单所有数据的简单方法
- Oracle对数据的导出和导入,建立用户,删除用户以及其下的所有表
- 无归档,无备份,rm误删除所有数据文件恢复
- 删除数据库所有表的数据
- es5.x批量删除某个Type下的所有数据
- JS获取form表单的所有数据
- js 简单实现表单数据的增添,单项删改,多项删除,修改以及全选功能
- 反转一个字符串和删除N层级目录的所有文件或者删除数据库所有表保留数据库;清除数据库所有表的数据
- 最简单删除SQL Server中所有数据的方法
- 删除数据库里的所有表
- oracle删除表空间中一用户及其对应的所有数据
- SQL删除所有用户自定义数据表,存储过程
- oracle 执行 delete user$ 误删所有用户信息后的数据恢复流程
- (十九)计算应用程序所有的缓存信息和删除应用程序的所有缓存数据
- javascript 一次性post页面所有指定表单数据