CREATE VIEW test_view_3 AS select IFNULL(SUM(amount),0) todayCollect from user_transaction_log u where to_days(FROM_UNIXTIME(u.createTime))=TO_DAYS(now());
SELECT * FROM test_view_3;
未完。。。。
CREATE VIEW test_view_3 AS select IFNULL(SUM(amount),0) todayCollect from user_transaction_log u where to_days(FROM_UNIXTIME(u.createTime))=TO_DAYS(now());
SELECT * FROM test_view_3;
未完。。。。