I have a database connection nuc
I have a table name Alerts
I'm trying to truncate that table by doing this
DB::connection('nuc')->statement('TRUNCATE Alerts');
I kept getting
QueryException in Connection.php line 629: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "alerts" does not exist (SQL: TRUNCATE Alerts)
How do I force truncate a table base on database connection?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire