thinkphp5 怎么将变量作为模糊查询条件

2024-12-18 18:44:56
推荐回答(1个)
回答1:

select gmt_Id_i ,gmt_Name_v, (select count(*) from tb_mgoods where goods_MoreType_v=tb_mgoodsmoretype.gmt_Id_i) as counts from tb_mgoodsmoretype where gmt_Id_i in(10,121)