-4
我有一個名爲tags
的表格。 Column
的名字是id,tag_name
。 我想group by
使用tag_name
。我怎麼能groupBy使用多列名稱?
這將是這樣的,
{ beauty,general-health,pregnency } as health
。
什麼是sql查詢?
我有一個名爲tags
的表格。 Column
的名字是id,tag_name
。 我想group by
使用tag_name
。我怎麼能groupBy使用多列名稱?
這將是這樣的,
{ 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