1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,09:30:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-21,21:30:30','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,08:30:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-21,09:00:00','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,21:30:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-21,22:00:00','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,21:30:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-22,8:30:00','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,8:30:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-22,8:45:00','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,22:00:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-22,21:30:00','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,20:00:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-22,9:30:00','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
SELECT get_eff_time_length(STR_TO_DATE('2015-12-21,20:00:00','%Y-%m-%d,%H:%i:%s') ,STR_TO_DATE('2015-12-23,9:30:00','%Y-%m-%d,%H:%i:%s') , TIME(STR_TO_DATE('09:00:00','%H:%i:%s')) , TIME(STR_TO_DATE('21:00:00','%H:%i:%s')) )
|