(1)--转换函数
--数字转换字符串
select to_char(100)||'分' from dual;
select 100||'' from dual;
(2)--日期转字符串
select to_char(sysdate,'yyyy-mm-dd') from dual;
select to_char(sysdate,'yyyy')||'年'||to_char(sysdate,'mm')||'月'||to_char(sysdate,'dd')||'日' from dual;
select to_char(sysdate,'yyyy-mm-dd hh:mi:ss') from dual;
(3)--字符串转日期
select to_date('2017-03-10','yyyy-mm-dd') from dual;
(4)--字符串转数字
select to_number('100')+10 from dual;
select '100'+0 from dual;
select '100'||0 from dual;--拼接后就变成字符串了