navicat select 条目数 table 作为查询生成器中的值
navicat select number of entries in one table as value in query builder
我有一个当前的 Navicat 查询生成器如下:
我想 select 将来自另一个 table 的记录数 select 链接到 scoring_sections table 作为 "num_entries"在输出结果中。
我要链接的 table 如下所示:
我似乎无法弄清楚,因为这是我第一次使用 navicat,在 Google
上找不到任何东西
提前致谢
我不得不 group_by scoring_sections 中链接到条目 table 的所有列,并且刚刚在 select 语句中添加了 COUNT(entries.id) AS num_entries
.所以用了 MYSQL 知识来完成这个
我有一个当前的 Navicat 查询生成器如下:
我想 select 将来自另一个 table 的记录数 select 链接到 scoring_sections table 作为 "num_entries"在输出结果中。
我要链接的 table 如下所示:
我似乎无法弄清楚,因为这是我第一次使用 navicat,在 Google
上找不到任何东西提前致谢
我不得不 group_by scoring_sections 中链接到条目 table 的所有列,并且刚刚在 select 语句中添加了 COUNT(entries.id) AS num_entries
.所以用了 MYSQL 知识来完成这个