tp链式问题

1.链式->count()  查询记录总数 select count(id) from ims_store

->group('name')->count()  分组后的记录总数  select count(*) from (select id from ims_store group by name) a 

误区:差点认为是 得出每行含有count的列表

posted @ 2023-04-15 17:59  东方素  阅读(10)  评论(0编辑  收藏  举报