我试图为整个文件夹禁用警察,但是然后为文件夹中的特定文件重新启用警察。我尝试了以下方法,但它没有用。
DROP TABLE IF EXISTS table1
create table table1 (Pays nvarchar(300))
DROP TABLE IF EXISTS table2
create table table2 (Factory nvarchar(300), [Count] bigint)
/*temp table in sql should be created like this*/
create table #temp (Pays nvarchar(300),Factory nvarchar(300), [Count] bigint)
/*table variable should be created like this*/
Declare @temp table ( Pays nvarchar (300), Factory nvarchar (300), [Count] bigint)
insert into #temp(Pays) select Pays
from table1
insert into #temp(Factory,[Count]) select Factory,[Count]
from table2
Insert into @temp select Pays,Factory,[Count] from #temp
where Pays='yes'
go
这可以用rubocop吗?