|
![](/images/resource/spacer.gif) |
|
สอบถาม การวนตรวจสอบข้อมูลในทางขวามือ ตามคอลัมภ์ เพื่อนำค่าที่ได้มาคำนวนระยะเวลาการใช้งาน |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
Code (SQL)
select m.t_now,
(
select concat( date , ' ', right( concat('0', time), 8)) from tablename
where concat( date , ' ', right( concat('0', time), 8)) > m.t_now
and `before` = 'run'
order by concat( date , ' ', right( concat('0', time), 8))
limit 1
) t_bef
from (
select concat( date , ' ', right( concat('0', time), 8)) as t_now
) m where `now` = 'run'
ส่วน การหาระยะห่าง ลองค้นดูในเนต
|
ประวัติการแก้ไข 2022-06-10 17:06:44 2022-06-10 17:08:16
![](/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 :
2022-06-10 17:06:00 |
By :
Chaidhanan |
|
![](/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 00
|