sql 分页语句 用top not exist

sql 分页语句 用top not exist
SELECT TOP 5 * FROM im_dh WHERE NOT EXISTS(SELECT * FROM (SELECT TOP 10 PID FROM  im_dh order by dhdt desc ) T  WHERE T.PID=im_dh.PID) order by dhdt desc

ibatis 中用$来设置动态参数
top  $start$ 



大盘预测

你可能感兴趣的:(sql 分页语句 用top not exist)