摘要: --丹壹号转义select 'HELLO WORLD' from dual;select 'HELLO''WORLD' from dual;select 'HELLO''''WORLD' from dual; 阅读全文
posted @ 2016-08-24 23:40 叨客人 阅读(794) 评论(0) 推荐(0) 编辑
摘要: --工资超过5000 且last_name 以s 结尾的员工select * from employees where salary>=5000 and last_name like '%s'; --查询部门是10,20,以及没有部门的员工select * from employees where 阅读全文
posted @ 2016-08-24 23:27 叨客人 阅读(110) 评论(0) 推荐(0) 编辑
摘要: select * from employees where first_name like 'S%' --查询first_name 以S 开头的员工select * from employees where first_name like '%S' --查询first_name 以S 结尾的员工 - 阅读全文
posted @ 2016-08-24 23:18 叨客人 阅读(694) 评论(0) 推荐(0) 编辑
摘要: select * from employees where department_id is null;select * from employees where department_id is not null; select * from employees between 5000 and 阅读全文
posted @ 2016-08-24 22:54 叨客人 阅读(231) 评论(0) 推荐(0) 编辑