摘要:
1、查询整个数据库的用户表 select * from sysobjects where xtype='U' 2、统计整个数据库的用户表总数 select COUNT(*) from sysobjects where xtype='U' 3、查询整个数据库用户表的数据行数 SELECT a.name 阅读全文
摘要:
1、批量创建表,使用存在的[Test]表创建新表 declare @hh int declare @hhstr varchar(2) declare @tableName varchar(30) set @hh=6 while (@hh<24) begin select @hhstr= right( 阅读全文
摘要:
删除[field]字段内容重复的数据,[table]表名,[field]字段名 DELETE FROM [table] WHERE [id] NOT IN (SELECT MIN([id]) FROM [B_SensitiveWord] GROUP BY [field] Having Count(* 阅读全文