在MySQL中我获取了超过100行,这是DataTables的默认限制显示结果
我想覆盖Datatables的默认限制,并在每个页面上显示30行,直到我获取的MySQL结果结束。
在MySQL中,我将获取与指定月份相匹配的所有数据
答案 0 :(得分:0)
SELECT
product, origin, transit, destination,
SUM([count] * (status = 'Delivered')) AS delivered,
SUM([count] * (status = 'Not Delivered')) AS not_delivered
FROM mytable
GROUP BY 1, 2, 3, 4