select bulamao_sendpost.*,(select count(id) from `bulamao_bidbiao` where bulamao_bidbiao.sid =bulamao_sendpost.id) as `sum` from `bulamao_sendpost`
...全文
1844打赏收藏
tp5如果写这句SQL
使用TP5 如何写这 个原生的SQL呢 select bulamao_sendpost.*,(select count(id) from `bulamao_bidbiao` where bulamao_bidbiao.sid =bulamao_sendpost.id) as `sum` from `bulamao_sendpost`