有关SQL语句中distinct的用法问题!
我在Access数据库中用这个语句查询所有ShopOrder相同的字段都输出来了!Select distinct(ShopOrder), ShopOrder_id, ShopCar_Invoice, ShopCar_Remark, ShopCar_Deal, Users_ID, Shop_Num from [ShopOrder] order by ShopOrder desc
但是我用下面这个语句就可以达到我想要的效果!
Select distinct(ShopOrder) from [ShopOrder] order by ShopOrder desc
但是,别的字段我也有用呀!不能不读出来吧!
请各位高手帮我解决一下!坐等!