【发布时间】:2015-11-16 05:55:27
【问题描述】:
我有一个名为tags 的表。 Column 名称是 id,tag_name。
我想group by 使用tag_name 。
看起来像这样,
{ beauty,general-health,pregnency } as health.
什么是 sql 查询?
【问题讨论】:
我有一个名为tags 的表。 Column 名称是 id,tag_name。
我想group by 使用tag_name 。
看起来像这样,
{ beauty,general-health,pregnency } as health.
什么是 sql 查询?
【问题讨论】:
做一个子查询
select...
from (
select { beauty,general-health,pregnency } as health
from table) t
group by health
【讨论】:
select * from tags group by tag_name
【讨论】: