你很亲密
declare @qry nvarchar(max);select @qry = (SELECT 'DROP INDEX [' + ix.name + '] ON ' + OBJECT_NAME(ID) + '; 'FROM sysindexes ixWHERe ix.Name IS NOT null and ix.Name like '%prefix_%'for xml path(''));exec sp_executesql @qry
欢迎分享,转载请注明来源:内存溢出
你很亲密
declare @qry nvarchar(max);select @qry = (SELECT 'DROP INDEX [' + ix.name + '] ON ' + OBJECT_NAME(ID) + '; 'FROM sysindexes ixWHERe ix.Name IS NOT null and ix.Name like '%prefix_%'for xml path(''));exec sp_executesql @qry
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)