Answers for "default column value in sql same as another column laravel"

SQL
0

default column value in sql same as another column laravel

Schema::table('users', function(Blueprint $table) {
    $table->dateTime('last_activity');
});

\DB::statement('UPDATE users SET last_activity = updated_at');
Posted by: Guest on December-11-2020

Code answers related to "default column value in sql same as another column laravel"

Code answers related to "SQL"

Browse Popular Code Answers by Language