我正在使用MetaMoji上的ios应用程序。我正在使用XML进行本地数据库中mysql求和。我可以添加免费页面。就像我想总结员工一年365天的薪水。每天每页。当我使用mysql聚合函数时,它正在计算365天的总薪水。例如我想计算2019/4/1至2019/4/2薪水,2019/4/1至2019/4/3薪水,2019/4/1至2019/4/4薪水,依此类推。但是,当我单击页面2以获得2019/4/1至2019/4/2的工资时,它显示了2019/4/1至2019/4/4的工资总额。
<sql>SELECT SUM(salary) AS total
,t1._driveId
,t1._documentId
,t1._objectType
,t1._objectId
,t1._ownerId
,t1._pageId
,t1._layerType
,t1._layerId
,t1._x
,t1._y
,t1._width
,t1._height
FROM property AS t1</sql>
我希望输出2019/04/01至2019/04/02的薪水为1 + 1 = 2 但是输出是2019/04/01到2019/04/04的薪水,即1 + 1 + 1 + 1 = 4 the the is page I input the salary of day1 day2 salary day3 salary