Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 MySQL 数据库,可以将响应回答为 A、B、C 或 D。我现在想从 MySQL 数据库中取出这些答案并将它们放入饼图中。这怎么可能,很容易?
我可以了解一下如何将它作为一个数组获取并解析该数组吗?但是如何访问这个数组?
谢谢
尝试这样的事情:
SELECT A, COUNT(A), B, COUNT(B) FROM answer GROUP BY answ;