-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
challenge-programcomponent/expressionhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.sig/plannerSIG: PlannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Description
Compare two sqls
1、
SET @execDate = DATE_FORMAT(NOW(),'%Y-%m-%d');
SET @start_time = DATE_ADD(NOW(), INTERVAL -1 DAY);
SET @end_time = @execDate;
desc SELECT count(*) FROM GameActiveLogDB.wendao_active_log WHERE active_time >= @Start_time AND active_time < @End_time;
2、desc SELECT count(*) FROM GameActiveLogDB.wendao_active_log WHERE active_time >= DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -1 DAY),'%Y-%m-%d') AND active_time < DATE_FORMAT(NOW(),'%Y-%m-%d');
Score
900
SIG slack channel(must):
Contact us in channel #sig-planner
of TiDB Community
Mentor(must)
Metadata
Metadata
Assignees
Labels
challenge-programcomponent/expressionhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.sig/plannerSIG: PlannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.