首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 中trim函数跟replace函数的用法

2013-04-09 
oracle 中trim函数和replace函数的用法For example:trim(tech)would return techtrim( fromtech)w

oracle 中trim函数和replace函数的用法

For example:

trim('   tech   ')  would return 'tech'
trim(' '  from  '   tech   ')  would return 'tech'
trim(leading '0' from '000123')  would return '123'
trim(trailing '1' from 'Tech1')  would return 'Tech'
trim(both '1' from '123Tech111')  would return '23Tech'

 

--chr(10)是换行符,
    --chr(13)是回车,
    --replace(replace(tableSource,CHR(10),''),chr(13),'');

热点排行