一个查询语句
我由于要用到只取第几条记录.
所以结合网上查找的使用了以下的比较简单的一种
string
sql1
=
"
select top 1 * from picture where newsid not in (select DISTINCT top 3 newsid from picture order by newsid desc) order by newsid desc
"
;
这样的话就是取的第4条记录了
很简单