关于仅显示相同记录中一条的SQL语句

来源:互联网 发布:js 监听鼠标点击事件 编辑:程序博客网 时间:2024/04/29 20:37

sql="select * from product where ID in(select max(ID) from product where proclass='"&proclass&"' group by protitle)"

protitle字段有多个记录相同,此SQL仅显示最近上传的相同protitle内容的一个记录,以便循环显示时的唯一性。

原创粉丝点击