当前位置:首页 > 文章
laravel 去重复查询
2017-08-18

去重复

$district_all =ParkingLots::groupBy('district')->get(['district','district_id']); 


delete from dictionarys where id not in (select a.id from ((select min(id) id from dictionarys  group by word_1) a))

只要修改 表名dictionarys   字段名word_1

去重复.txt


关于本站

Ake博客

欢迎和我交流:
itcyk@hotmail.com

不知道放点啥