select t.*,t.rowid from dept t
select * from dept for update
select 'abc'||'def' from dual
select concat('as','df') from dual
select concat(empno,ename) from emp
select concat(concat('a','ss'),'ll') from dual
select initcap('my name is aaa') from dual
select initcap(ename) from emp
select upper('my name is aaa')from dual
select lower('my name is aaa')from dual
select substr('my name is aaa',2,3) from dual
select replace('my name is aaa','aaa') from dual
select replace('my name is aaa','aaa','***') from dual
select ltrim(' ame ') from dual
select ltrim('*****name ','*') from dual
select rtrim(' ame ') from dual
select rtrim(' name*****','*') from dual
select trim(' AAA AAA ') from dual
select trim(both '*' from '****AAA AAA****') from dual
select trim(leading '*' from '****AAA AAA****') from dual
select trim(trailing '*' from '****AAA AAA****') from dual
select lpad('10',5,'0') from dual
select rpad('10',5,'0') from dual
select ceil(4.1) from dual
select floor(4.6) from dual
select trunc(3.1415926,4) from dual
select mod(23,8),mod(24,8) from dual;
select sysdate from dual
select last_day(sysdate) from dual
select to_date('2019-01-01','yyyy-MM-dd')-sysdate from dual
select months_between(to_date('2019-01-01','yyyy-MM-dd'),sysdate) from dual
select trunc(sysdate) from dual
select trunc(sysdate,'month') from dual
select add_months(sysdate,2) from dual
select trunc(sysdate,'month') from tab_person
select upToDate from tab_company where to_date(upToDate,'yyyy-MM-dd')<(select trunc(sysdate) from dual)
select trunc(3.1415926,4) from dual
select to_char(45521,'999,999,999') from dual
select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual
select to_date('2019-02-01','yyyy-mm-dd') from dual
select to_number('12') from dual
select count(*),sum(sal),max(sal),min(sal),avg(sal) from emp
select sys_guid() from dual
select nullif(sal,3000) from emp
select decode(deptno,20,'河南',10,'河北',30,'山西') from emp
select nvl(comm,0)+sal from emp