📜  一次更新所有列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:16.399000             🧑  作者: Mango

代码示例2
$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';
             }