SQLSTATE [42S22]:找不到列:1054 'where 子句'中的未知列 'drivers_name' 在此处输入代码
public function up()
{
Schema::create('drivers', function (Blueprint $table) {
$table->id();
$table->string('driver_name',999);
$table->text('description')->nullable();
$table->string('created by',999);
$table->timestamps();
});
}
类驱动扩展模型 { protected $fillable = [ 'driver_name', 'descrption', 'create_by' ];
use HasFactory;
} 选择 count(*) 作为聚合 from drivers
where drivers_name
= هشام عبدالله