You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order(doctor,patientid,wtime,isread)values(...)'
order 是 MySQL 保留字(用於 ORDER BY),直接作為表名會被解析器誤認為關鍵字。
orders、order_info 等。INSERT INTO `order` (...) VALUES (...)。所有引用該表的 SQL 皆需加反引號。避免使用任何保留字作為標識符(表名、列名、別名),參考 MySQL 保留字列表。