删除表:dgpage中Mail重复的记录并保留最后一条. delete dgpage where id in ( select a.id from dgpage a, dgpage b where a.mail = b.mail and a.id b.id ) 删除表:dgpage中Mail重复的记录并保留最近一条. delete dgpage where id in ( select&...[ 查看全文 ]
SQL查找第n条记录的方法: select top 1 * from table where id not in (select top n-1 id from table) temptable0 SQL查找第n条开始的m条记录的方法: select top m * from table where id not in (select top n-1 id from table) tempt...[ 查看全文 ]