sql 语句 not exists
发布网友
发布时间:2022-05-18 02:22
我来回答
共2个回答
热心网友
时间:2023-10-05 16:04
加入你表里有个字段value1
select top 5 * from playtime WHERE value1 not in(SELECT top 2 value1 FROM playtime)
热心网友
时间:2023-10-05 16:04
假设你该表的主键为 Column_Id
SELECT TOP 5 * FROM PlayTime
WHERE Column_Id IN(SELECT TOP 7 Column_Id FROM PlayTime)
ORDER BY Column_Id DESC