|
![](/images/resource/spacer.gif) |
|
sql query ข้อมูลเวลาทุกๆ5นาที โดยเริ่มจากเวลาตั้งต้น |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ทุกๆ 3 นาที เอาเฉพาะรายการแรกที่เจอ
Code (PHP)
$SQL="
select min(dte) from table
where between '$start' and '$end'
group by FLOOR( DATEDIFF(SECOND, '$start', dte ) / 180)
";
สำหรับ mysql
Code (PHP)
$SQL="
select min(dte) from table
where between '$start' and '$end'
group by FLOOR( TIME_TO_SEC(TIMEDIFF(dte, '$start')) / 180)
";
|
ประวัติการแก้ไข 2015-09-24 16:37:07 2015-09-24 16:57:13 2015-09-24 16:58:00
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2015-09-24 16:30:10 |
By :
NewbiePHP |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 05
|