【问题标题】:Convert mysql table from vertical to horizontal将mysql表从垂直转换为水平
【发布时间】:2015-01-28 12:53:24
【问题描述】:

我想在mysql中做这样的事情

我有一张桌子

id   key               value 
001  connection_days    2
001  seniority          A
002  connection_days    15
002  seniority          A++
....

我想基于此创建一个表,例如

id  connection_days  seniority
001      2              A
002      15             A++ 

有人知道如何实现吗?谢谢

【问题讨论】:

标签: mysql


【解决方案1】:

请看一下这个问题。已经回答了。

Displaying Rows of HTML Elements in Vertical Rows

祝你有美好的一天!

【讨论】:

    猜你喜欢
    • 2018-12-31
    • 2011-02-08
    • 1970-01-01
    • 2022-11-16
    • 2017-08-07
    • 1970-01-01
    • 2014-10-01
    • 2014-05-30
    • 1970-01-01
    相关资源
    最近更新 更多