Mysql:listview vb net里面的mysql百分比

时间:2013-12-31 06:25:35

标签: mysql percentage

我计算了一个百分比,它确实可以使用mysql查询,

+----------+
| %        |
+----------+
| 20.00%   |  
| 16.67%   |  
| 50.00%   |   
+----------+

但是当想在listview vb net中读取它时,它不会像在mysql查询中那样显示

+----------+
| %        |
+----------+
| 20.0000  |  
| 16.6777  |  
| 50.0000  |   
+----------+

如何阅读内部列表视图与mysql查询完全相同,

谢谢大师,对不起我的英语太糟糕了:(

编辑: 我采用了以下示例查询表单:calculate percentage

查询:

SELECT group_name, employees, surveys, COUNT( surveys ) AS test1, 
        concat(round(( surveys/employees * 100 ),2),'%') AS percentage
    FROM a_test
    GROUP BY employees

0 个答案:

没有答案