--> ²âÊÔÊý¾Ý£º[TB] if object_id('[TB]') is not null drop table [TB] create table [TB]([id] int,[timeSpan] varchar(20)) insert [TB] select 1,'5Ìì 10:00:00' union all select 2,'20Ìì 01:00:00' union all select 3,'100Ìì 01:00:00'
Çó¸övbÖеÄsqlÓï¾äµÄд·¨£¬´ÎsqlÓï¾äµÄÓ÷¨ÊÇ·ÖÒ³³ÌÐò ÎÒдµÄÈçÏ£ºÆäÖÐAÊÇÓÃÀ´½ÓÊÕÿҳÏÔʾµÄ¼Ç¼µÄÌõÊý£¬BÊÇÓÃÀ´½ÓÊÕÏÔʾµÄµ±Ç°µÄÒ³Ãæ. sqltext="select top A * from log where id not in(select top ( ......