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 :
Table structure
Settings for the table structure (list of columns).
Table structure
Documentation Whether the table structure actions should be hidden. Restore default value
Documentation Whether column comments should be shown in table structure view Restore default value
Default transformations
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value
Documentation Values for options list for default transformations. These will be overwritten if transformation is filled in at table structure page. Restore default value

opd_patients

# Name Type Collation Attributes Null Default Comments Extra Action
1 int(11) No None AUTO_INCREMENT Change Change Drop Drop
2 varchar(10) utf8mb4_general_ci No None รหัสผู้ป่วย OPDXXXXX Change Change Drop Drop
3 varchar(100) utf8mb4_general_ci No None ชื่อจริง Change Change Drop Drop
4 varchar(100) utf8mb4_general_ci No None นามสกุล Change Change Drop Drop
5 varchar(50) utf8mb4_general_ci Yes NULL ชื่อเล่น Change Change Drop Drop
6 date Yes NULL Change Change Drop Drop
7 enum('Male', 'Female', 'Other') utf8mb4_general_ci Yes NULL Change Change Drop Drop
8 varchar(20) utf8mb4_general_ci Yes NULL เบอร์โทรศัพท์ (อาจซ้ำได้? ถ้าไม่ UNIQUE ให้ลบออก) Change Change Drop Drop
9 varchar(100) utf8mb4_general_ci Yes NULL Change Change Drop Drop
10 enum('WhatsApp', 'Line', 'Email', 'Phone', 'Other'... utf8mb4_general_ci Yes NULL ช่องทางติดต่อหลัก Change Change Drop Drop
11 varchar(255) utf8mb4_general_ci Yes NULL รายละเอียดช่องทางติดต่อ (Line ID, Email) Change Change Drop Drop
12 varchar(255) utf8mb4_general_ci Yes NULL Change Change Drop Drop
13 varchar(255) utf8mb4_general_ci Yes NULL Change Change Drop Drop
14 varchar(100) utf8mb4_general_ci Yes NULL Change Change Drop Drop
15 varchar(10) utf8mb4_general_ci Yes NULL Change Change Drop Drop
16 varchar(100) utf8mb4_general_ci Yes United Kingdom Change Change Drop Drop
17 varchar(100) utf8mb4_general_ci Yes NULL ช่องทางที่รู้จักคลินิก Change Change Drop Drop
18 text utf8mb4_general_ci Yes NULL Change Change Drop Drop
19 text utf8mb4_general_ci Yes NULL Change Change Drop Drop
20 text utf8mb4_general_ci Yes NULL Change Change Drop Drop
21 timestamp Yes current_timestamp() Change Change Drop Drop
22 timestamp Yes current_timestamp() ON UPDATE CURRENT_TIMESTAMP() Change Change Drop Drop
23 int(11) Yes NULL FK อ้างอิง user ที่เพิ่มข้อมูล Change Change Drop Drop
24 tinyint(1) No 0 สถานะการลบ (Soft Delete) Change Change Drop Drop
With selected: With selected:

Add column  Add column(s)  
Indexes Documentation
Action Keyname Type Unique Packed Column Cardinality Collation Null Comment
Edit Edit Rename Rename Drop Drop PRIMARY BTREE Yes No id 337 A No
Edit Edit Rename Rename Drop Drop opd_number BTREE Yes No opd_number 337 A No
Edit Edit Rename Rename Drop Drop phone_number BTREE Yes No phone_number 337 A Yes
Edit Edit Rename Rename Drop Drop email BTREE Yes No email 337 A Yes
Edit Edit Rename Rename Drop Drop idx_opd_number BTREE No No opd_number 337 A No
Edit Edit Rename Rename Drop Drop idx_phone_number BTREE No No phone_number 337 A Yes
Edit Edit Rename Rename Drop Drop idx_is_deleted BTREE No No is_deleted 4 A No
Edit Edit Rename Rename Drop Drop idx_created_by BTREE No No created_by 4 A Yes
Edit Edit Rename Rename Drop Drop idx_opd_email BTREE No No email 337 A Yes
Edit Edit Rename Rename Drop Drop idx_opd_dob BTREE No No date_of_birth 337 A Yes
Edit Edit Rename Rename Drop Drop idx_opd_postcode BTREE No No postcode 337 A Yes
Create an index on columns
Partitions Documentation
Information
Space usage
Data 112.0 KiB
Index 160.0 KiB
Overhead 0 B
Effective 272.0 KiB
Total 272.0 KiB
Optimize table Optimize table
Row statistics
Format dynamic
Collation utf8mb4_general_ci
Next autoindex 541
Creation Apr 21, 2026 at 06:23 PM
Last update Jun 28, 2026 at 09:30 AM
Last check Jun 28, 2026 at 07:42 PM