【发布时间】:2017-04-19 15:29:54
【问题描述】:
Connection.php 第 769 行中的 QueryException:
SQLSTATE [42S02]:未找到基表或视图:1146 表“hmsdb.customers”不存在(SQL:插入customers(lastName,firstName,middleName,address,@987654326 @、mobile、notes、updated_at、created_at) 值(Arce、Johanna、ds、N/A、ds、ew、2016-12-05 09:20:18、2016-12- 05 09:20:18))
SQLSTATE[42S02]:未找到基表或视图:1146 表 'hmsdb.customers' 不存在
列的名称应该是客户,我不知道如何将 hmsdb.customers 更改为 hmsdb.customer
【问题讨论】:
-
在你的模型中
protected $table='customer';