thinkphp的子查询问题

2025-04-28 18:47:03
推荐回答(1个)
回答1:

你测试一下,把SQL打印出来,我理解的意思是:
select * from (select id,name from tablename group by field) as a where $where order by id status desc ;
只是我对平常子查询的写法,不了解TP是不是这样写的,但他们最后也是转化为这样的SQL语句的!忘采纳.