ifnull(exp1,exp2) exp1有值就取exp1,没有就取exp2 就算是空格也可以去exp1case when then else函数 与switch case差不多
得到一个不是本表的字段可以链接查询别表之后as 为一个新字段