Код: Выделить всё
$DB = DB::connection('localhost');
$query = 'select * into newtable from oldtable';
$DB->statement($query);
DB::purge('localhost');
Код: Выделить всё
SQLSTATE[42000]: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]CREATE TABLE permission denied in database
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/79881096/laravel-query-builder-gives-unvalid-error-while-copying-table[/url]
Мобильная версия