Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Browse mode
Customize browse mode.
Browse mode
Documentation Use only icons, only text or both. Restore default value
Documentation Use only icons, only text or both. Restore default value
Documentation Whether a user should be displayed a "show all (rows)" button. Restore default value
Documentation Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown. Restore default value
Documentation SMART - i.e. descending order for columns of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise. Restore default value
Documentation Highlight row pointed by the mouse cursor. Restore default value
Documentation Highlight selected rows. Restore default value
Documentation Restore default value
Documentation Restore default value
Documentation Repeat the headers every X cells, 0 deactivates this feature. Restore default value
Documentation Maximum number of characters shown in any non-numeric column on browse view. Restore default value
Documentation These are Edit, Copy and Delete links. Restore default value
Documentation Whether to show row links even in the absence of a unique key. Restore default value
Documentation Default sort order for tables with a primary key. Restore default value
Documentation When browsing tables, the sorting of each table is remembered. Restore default value
Documentation For display Options Restore default value
SELECT * FROM `appointments`
Edit inline ] [ Edit ] [ Explain SQL ] [ Create PHP code ] [ Refresh ]
Full texts id opd_patient_id
FK อ้างอิง opd_patients
doctor_id
FK อ้างอิง users (ที่เป็น Doctor)
service_id
FK อ้างอิง services
appointment_datetime
วันและเวลาเริ่มนัดหมาย
duration_minutes
ระยะเวลาที่คาดว่าจะใช้ (นาที), อาจดึงจาก service ห…
end_datetime
วันและเวลาสิ้นสุดนัดหมาย (คำนวณจาก start + duratio…
status
สถานะการนัดหมาย
notes
หมายเหตุเพิ่มเติม
created_at updated_at created_by
FK อ้างอิง users (ที่สร้างนัด)
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 8
8 3 3 2 2025-04-01 09:45:00 30 2025-04-01 10:15:00 Completed อาจจะเลท 2025-04-01 21:59:31 2025-04-04 19:40:05 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 12
12 33 6 3 2025-04-07 13:00:00 30 2025-04-07 13:30:00 Scheduled 2025-04-06 22:11:19 2025-04-06 22:11:19 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 15
15 38 7 65 2025-06-01 18:00:00 60 2025-06-01 19:00:00 Completed Skin consult 2025-06-01 17:52:41 2025-06-24 00:12:29 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 16
16 38 7 34 2025-09-06 10:00:00 60 2025-09-06 11:00:00 Completed Filler คาง 2025-06-09 10:09:05 2025-06-24 00:14:40 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 17
17 38 7 42 2025-09-06 11:00:00 45 2025-09-06 11:45:00 Scheduled Mesofat at cheek and double chin 2025-06-09 10:10:09 2025-06-09 10:10:09 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 18
18 46 7 60 2025-09-06 11:45:00 90 2025-09-06 13:15:00 Completed 2025-06-09 10:21:32 2025-06-24 00:20:27 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 19
19 50 7 1 2025-06-10 11:00:00 30 2025-06-10 11:30:00 Completed 2025-06-10 22:23:46 2025-06-10 23:28:02 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 20
20 40 7 77 2025-06-22 14:00:00 60 2025-06-22 15:00:00 Scheduled 2025-06-22 13:59:28 2025-06-22 13:59:28 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 21
21 65 7 4 2025-06-23 16:00:00 30 2025-06-23 16:30:00 Scheduled 2025-06-23 16:13:43 2025-06-23 16:13:43 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 22
22 66 7 82 2025-06-03 10:00:00 40 2025-06-03 10:40:00 Completed 2025-06-23 23:14:38 2025-06-23 23:26:04 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 23
23 36 7 7 2025-05-10 10:00:00 60 2025-05-10 11:00:00 Completed 2025-06-23 23:27:27 2025-06-23 23:29:11 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 24
24 37 7 47 2025-05-24 10:00:00 120 2025-05-24 12:00:00 Completed 2025-06-23 23:30:00 2025-06-23 23:31:56 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 25
25 55 7 1 2025-05-25 10:00:00 30 2025-05-25 10:30:00 Completed 2025-06-23 23:32:47 2025-06-23 23:35:59 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 26
26 52 7 7 2025-05-25 11:00:00 60 2025-05-25 12:00:00 Completed 2025-06-23 23:37:00 2025-06-23 23:38:48 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 27
27 41 7 35 2025-06-04 10:00:00 60 2025-06-04 11:00:00 Scheduled 2025-06-23 23:39:35 2025-06-23 23:39:35 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 28
28 39 7 7 2025-06-04 11:00:00 60 2025-06-04 12:00:00 Completed 2025-06-23 23:45:08 2025-06-23 23:46:19 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 29
29 67 7 60 2025-06-06 10:00:00 90 2025-06-06 11:30:00 Completed 2025-06-23 23:50:17 2025-06-23 23:51:27 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 30
30 42 7 35 2025-06-07 10:00:00 60 2025-06-07 11:00:00 Completed 2025-06-23 23:56:09 2025-06-23 23:57:14 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 31
31 43 7 20 2025-06-08 10:00:00 30 2025-06-08 10:30:00 Completed 2025-06-24 00:01:03 2025-06-24 00:01:49 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 32
32 44 7 65 2025-06-08 09:00:00 60 2025-06-08 10:00:00 Completed 2025-06-24 00:03:56 2025-06-24 00:04:44 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 33
33 45 7 18 2025-06-08 00:00:00 60 2025-06-08 01:00:00 Scheduled 2025-06-24 00:07:22 2025-06-24 00:07:22 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 34
34 68 7 20 2025-06-24 11:00:00 60 2025-06-24 12:00:00 Completed 2025-06-24 17:36:42 2025-06-24 18:37:56 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 35
35 69 7 43 2025-06-24 00:00:00 45 2025-06-24 00:45:00 Completed 2025-06-24 17:37:20 2025-06-24 18:36:32 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 36
36 73 7 2 2025-06-28 10:00:00 30 2025-06-28 10:30:00 Completed 2025-06-28 17:46:37 2025-06-28 18:11:07 1
Edit Edit Copy Copy Delete Delete
DELETE FROM appointments WHERE `appointments`.`id` = 37
37 37 7 24 2025-07-17 11:00:00 60 2025-07-17 12:00:00 Completed 2025-07-17 11:05:26 2025-07-17 22:31:39 1
With selected: With selected:
Query results operations Copy to clipboard Copy to clipboard Export Export Display chart Display chart Create view Create view
Bookmark this SQL query Bookmark this SQL query