Answers for "update all columns"

SQL
0

Update all column fileds

$users = DB::table('mails')->distinct('mark')->count('mark');
             
             if ($users == 1){    
                 $mark = Mails::all();
                 $mark->mark = '0';
                 $mark->save();
                 
                 echo 'reset values to 0';
             }else{
                 
                 echo 'DIferent values';
             }
Posted by: Guest on June-29-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language