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.
データベースから垂直方向のデータを水平方向に取得するにはどうすればよいですか (科目と学生のマーク)?
私はグーグルで一日を無駄にしましたが、結果はありません。誰でも助けることができますか?
group_concat機能を活用できる、
group_concat
例えば :
SELECT group_concat(subject,':',marks) FROM students;
出力は次のようになります。
english:93,maths:87,science:91 ...,etc