消除重复记录?
hebhd 2005-06-06 11:35:12 库结构
news:
cp_news_index cp_news_title cp_news_date
1 hebhd 2005
2 hebhd 2005
3 houzi 2005
问题
筛选出 cp_news_title不同的记录
也就是返回结果集
1 hebhd 2005
3 houzi 2005
或
2 hebhd 2005
3 houzi 2005
我用 select distinct cp_news_title from news 只能取 cp_news_title 字段
如何才做到呢?