语句如下:
1 --查询表中某列相同值的最近记录 2 SELECT * FROM TbName a 3 WHERE NOT EXISTS 4 ( 5 SELECT 1 FROM TbName WHERE ColumnName=a.ColumnName and CreateTime>a.CreateTime 6 )
时间: 2024-10-03 18:30:24
语句如下:
1 --查询表中某列相同值的最近记录 2 SELECT * FROM TbName a 3 WHERE NOT EXISTS 4 ( 5 SELECT 1 FROM TbName WHERE ColumnName=a.ColumnName and CreateTime>a.CreateTime 6 )