我使用java作为前端和mysql作为后端创建了下表.
mysql> select * from consumer9;
-------------
4 rows in set (0.13 sec)
Service_ID Service_Type consumer_feedback
100 computing -1
35 printer 0
73 computing -1
50 data 1
Run Code Online (Sandbox Code Playgroud)
我使用随机数的概念生成了这些值.我想获得Service_types(打印机,计算,数据)在所有表中均匀分布的输出,反馈值为1,发生次数最多.