原有的语句
引用:
sql="select top 6 F_BoardID,F_AnnounceID,F_Viewname,F_Readme,F_id from [dv_upfile] where F_Type=1 and F_FileType='jpg' and F_Viewname<>'' And F_AnnounceID in(select DISTINCT F_AnnounceID from [dv_upfile] where F_Type=1 and F_FileType='jpg' and F_Viewname<>'') order by F_id desc"
我现在想在这个基础上实现——

如果 F_Readme 的字段的值跟 前面查询到的一条记录 中的 重复 了,就跳过这条记录,继续找下一条


能实现吗?大虾赐教~谢谢了