摘要:
--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 阅读全文
摘要:
--工资超过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 阅读全文