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;

更多推荐

SQL查询语句起别名