摘要: 1 select empno,ename,sal,sal*12 from emp order by sal*12 desc; --表达式 2 select empno,ename,sal,sal*12 年薪 from emp order by 年薪 desc; --别名 3 select empno 阅读全文
posted @ 2018-12-04 11:07 Cloverll 阅读(1105) 评论(0) 推荐(1) 编辑
摘要: escape转义 --查询名字中带有"_"的员工信息 SELECT * FROM EMP WHERE LIKE ‘%\_%’ ESCAPE '\' ; 阅读全文
posted @ 2018-12-04 10:28 Cloverll 阅读(3274) 评论(0) 推荐(0) 编辑