MySQL在字段中使用select子查询 – kankan231的专栏 – 博客频道 – CSDN.NET
来源: MySQL在字段中使用select子查询 - kankan231的专栏 - 博客频道 - CSDN.NET 前几天看别人的代码中看到在字段中使用select子查询的方法,第一次见这种写法,然后研究了一下,记录下来 大概的形式是这样的: select a .*,(select b.another_field from b where a.id=b.aid) another_field fro