SQL查询语句起别名
--直接写后面
select dept_id deptID from dept;
--加AS再写后面
select dept_id as deptID from dept;
--用""括起来
select dept_id "deptID" from dept;
--加AS,用""括起来
select dept_id as "deptID" from dept;
微信扫一扫
--直接写后面
select dept_id deptID from dept;
--加AS再写后面
select dept_id as deptID from dept;
--用""括起来
select dept_id "deptID" from dept;
--加AS,用""括起来
select dept_id as "deptID" from dept;
相关推荐