1.to_number()
select to_number('2015') from dual ---2015
2.to_char()
–不需要轉(zhuǎn)換格式
select to_char(2015) from dual ---'2015'
–需要轉(zhuǎn)換格式
select to_char(1, '$000') from dual --- $001 select to_char(2212, '$999999') from dual ---$2212
3.to_date()
—必須提供匹配的時(shí)間格式
—例子
select to_date('2015/04/04 08:00:00','yyyy-MM-dd HH24:MI:SS') from dual
Oracle相關(guān)介紹:
Oracle Database,又名Oracle RDBMS,或簡稱Oracle。是甲骨文公司的一款關(guān)系數(shù)據(jù)庫管理系統(tǒng)。它是在數(shù)據(jù)庫領(lǐng)域一直處于領(lǐng)先地位的產(chǎn)品??梢哉fOracle數(shù)據(jù)庫系統(tǒng)是目前世界上流行的關(guān)系數(shù)據(jù)庫管理系統(tǒng),系統(tǒng)可移植性好、使用方便、功能強(qiáng),適用于各類大、中、小、微機(jī)環(huán)境。它是一種高效率、可靠性好的、適應(yīng)高吞吐量的數(shù)據(jù)庫方案。