1、在查询中使用字符函数
如:在员工信息表中查询出员工的生日
select substr(cardid, 7,8) from users;
将部门号01全部替换成 ‘信息技术’
select replace(deptno, ‘01’, ‘信息技术’) from users;
2、在查询中使用数值函数
select mod(age,10) from users;
3、在查询中使用日期函数
查询员工入职的年份
select extract(year from regdate) from users;
查询出5月份入职的员工信息
select * from users where extract(month from regdate)=5;