算数运算符/空值问题
select * |{[DISTINCT] column |expression [alias],...} from table;
--虚表(dual)
select 5+3,5-3,5*3,5/2 from dual;
select 'Hello World',100 from dual;
salary*1.25不会产生新的数据,我们称这种状况为衍生列,计算列
若想优先级为加减,可以加括号;
select * from employee_id,last_name,salary,salary*commission_pct,salary+salary*commission_pct from employee;
--员工编号,姓名,工资,奖金金额,实发工资(工资+奖金)
表格结果都为空值