Set @SQLStr= 'Delete from [[email protected]+'].[email protected]+'.dbo.tbQSD Where [email protected]_recpid+'''
Insert Into [[email protected]+'].[email protected]+'.dbo.tbQSD Select * from dbo.tbQSD Where [email protected]_recpid+'''
Delete from [[email protected]+'].[email protected]+'.dbo.tbClientCHInOut Where [email protected]_recpid+'''
Insert Into [[email protected]+'].[email protected]+'.dbo.tbClientCHInOut Select * from dbo.tbClientCHInOut Where [email protected]_recpid+''' '
Print(@SQLStr)
Exec(@SQLStr)
If @@Error>0
Begin
Select @ReStatus=2, @ReMsg='插入错误'
return
End
------解决方案--------------------
这是什么? 是VB脚本?还是PL-SQL语句?需要简单说明背景。
------解决方案--------------------
你的问题时什么?需要简单介绍一下。我们只看到了一些代码。不知所云。