在工作中遇到了问题,问题是一列数据,除了时间戳以外别的都一样,这该如何选择??
在csdn上,达人告诉我:
--如果知道timestamp的值
select * from table where timestamp = 0x00000000000007EA
--不知道值
--第二列
select top 1 * from table where timestamp not in (select top 1 timestamp from table )
--第三列
select top 1 * from table where timestamp not in (select top 2 timestamp from table )
--第四列
select top 1 * from table where timestamp not in (select top 3 timestamp from table )