mysql在jdbc项目

时间:2016-12-21 20:35:31

标签: java mysql jdbc unpivot

我正在研究数据可视化jsf项目,我需要分析和可视化数据。

我有一个包含大量50或更多列的mysql数据库表,我想编写一个sql语句来预处理(将列转换成行)这些数据在代码中,这样我就可以将它映射到java类。

或者是一个java代码,它会根据所选日期的范围分配所选列的值,以及如何映射类

下面是原始数据的图像。 These are the columns of the raw data

期望的转型

columns names as rows(PowerPlants) and values of the columns names under Mean(kilowatts), so if I could have a java class mapping it in this way that would be great so i can populate it on my graph

所以这样我可以将它映射到java类来分析日期和值。

0 个答案:

没有答案