MySQL中的if和case语句使用总结

MySQL中的if和case语句使用总结 create table test( id int primary key auto_increment, name varchar(20), sex int ) insert into test(name,sex) values('小明',1),('小兰',0),('小邹',1),('小孟',0) select id ,name ,if(sex=1,
相关文章
相关标签/搜索