日期:2014-05-18 浏览次数:20742 次
SELECT TOP 7 * FROM TBL_Info WHERE IndexTop = 1 AND NOT EXISTS (SELECT TOP 1 * FROM TBL_Info WHERE IndexTop = 1 ORDER BY PublishTime DESC) ORDER BY PublicTime DESC
SELECT TOP 7 * FROM TBL_Info WHERE IndexTop = 1 AND CHECKSUM(*) NOT IN (SELECT TOP 1 CHECKSUM(*) FROM TBL_Info WHERE IndexTop = 1 ORDER BY PublicTime DESC) ORDER BY PublicTime DESC