月薪100,奖金率为120%;
select 100*1.2;
select 100+(100*0.2);
年薪=月薪*12+奖金;
IFNULL(expr1,expr2) 是判断字段是否为空,如果为空则返回指定字段
select salary from employees where salary*12+commission_pct; !!!!@@@!!!@@@!!!@@@!!
--------------------------------------------------------------------------
单行函数:
字符函数:
concat :变大写
substr:截取字符串
upper:变大写 SELECT upper ('wx');
lower:变小写 SELECT lower('WX');
replace:替换 SELECT REPLACE('白石茉莉奈亚喜欢你','西川结衣','吉泽明步');