列的别名

 

给列起别名的两种方式

AS别名

空格别名

select employee_id,last name,salary,salary*1.25 as new_sal from employee;

select employee_id,last name,salary,salary*1.25 new_sal from employee;

不能两个字符空格,会形成非法标识符

双引号在此处有用

 

 

 

posted @ 2016-08-22 22:53  叨客人  阅读(248)  评论(0编辑  收藏  举报