sql update if else时间:2025-03-28 19:11:04update table1 a set name='test1', id = case when id < 2 Then 2 else id end; 这个是只update比2小的数到2;