欢迎分享,转载请注明来源:内存溢出
SELECT SUM(field_name) FROM tblName WHERE UNIX_TIMESTAMP(month) <= DATE_ADD(CURRENT_DATE(),INTERVAL -1 MONTH) GROUP BY monthSELECT FROM_UNIXTIME(`time`, '%c月份') AS mth,CONCAT(SUM(amount),'元') as amount FROM tb GROUP BY mth
赞
(0)
打赏
微信扫一扫
支付宝扫一扫
mysql5.7的安装教程
上一篇
2023-04-18
MYSQL中,存储手机号码的字段bigint(11)好,还是varchar(11)好,哪个更节省空间
下一篇
2023-04-18
评论列表(0条)