摘要:
--lower,upper :大小写转换select last_name,lower(last_name),upper(last_name) from employees; --initcap 单词首字母大写,其他全小写select initcap('this is a book') from du 阅读全文
摘要:
--单行函数(左边为原始状态,右边为修改后的状态,每一个字符都大写)select last_name,upper(last_name) from employees; --单行函数select last_name,upper(last_name),lower(last_name) from empl 阅读全文
摘要:
select row employee_id,last name,salary from employees; select row employee_id,last name,salary from employees where department_id=50; --查询牟彪中的前5条数据se 阅读全文
摘要:
阅读全文
摘要:
(1,2,3表示第一列,第二列,第三列,是列索引) 阅读全文
摘要:
--丹壹号转义select 'HELLO WORLD' from dual;select 'HELLO''WORLD' from dual;select 'HELLO''''WORLD' from dual; 阅读全文
摘要:
--工资超过5000 且last_name 以s 结尾的员工select * from employees where salary>=5000 and last_name like '%s'; --查询部门是10,20,以及没有部门的员工select * from employees where 阅读全文
摘要:
select * from employees where first_name like 'S%' --查询first_name 以S 开头的员工select * from employees where first_name like '%S' --查询first_name 以S 结尾的员工 - 阅读全文
摘要:
select * from employees where department_id is null;select * from employees where department_id is not null; select * from employees between 5000 and 阅读全文
摘要:
(虽然可以,但是不推荐),Oracle中没有日期常量的概念,其实是现将‘’1-1月-90’的字符型转换成日期类型,再做比较 只要条件中出现了 null 值,则显示的结果肯定为空,即不存在 阅读全文