当前位置: 首页 > 工具软件 > sqlupdate > 使用案例 >

sql update if else

韶弘壮
2023-12-01

update table1 a set name='test1', id = case 

when id < 2 Then

2

else

id

end;

这个是只update比2小的数到2;

 类似资料:

相关阅读

相关文章

相关问答