基于sql语句的一些常用语法积累总结
1.当某一字段的值希望通过其它字值显示出来时(记录转换),可通过下面的语句实现:case Type when "1" then "普通通道" when "2" then "高端通道" end as Type其中“Type"是字段名,”1“,”2“是字段值2.返回数据库中用户表的表单名:select name from table where type = "u" and status >=23.按拼音首字母排序:select * from table...