mysql下IF语句的简单使用
程序员文章站
2023-08-13 23:05:58
update if
update test set visit_age=if(visit_num is null,1,visit_num+1) where id=1
select if
select...
update if
update test set visit_age=if(visit_num is null,1,visit_num+1) where id=1
select if
select distinct if(exists(select * from interface_view_groups where id= %s and project_id= %s),1,0) as isexist
上一篇: ps初学者第十课 颜色原理