Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1619434
  • 博文数量: 292
  • 博客积分: 10791
  • 博客等级: 上将
  • 技术积分: 2479
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-20 21:06
文章分类

全部博文(292)

文章存档

2011年(31)

2010年(261)

分类: Oracle

2010-09-08 11:06:38

translate的主要作用是提取,替换字符串,其作用有时候和replace差不多.具体看下面的例子 
select translate('liyan4h123ui','#liyanhui','#') from dual 

结果:4123 



select translate('asadad434323', '#0123456789','#') from dual 

结果:asadad 



select TRANSLATE('kkaxksx', 'kx', '12') from dual 

结果:11a21s2 





select * from ( 

select  a2,count(*) from A1 group by a1, 

select  a2,count(*) from A2 group by a2, 

select  a3,count(*) from A3 group by a3, 

) order by 2  //2 在这里的意思是按照第二列的值排序 
阅读(2907) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-09-09 20:23:09

Download More than 1000 free IT eBooks: http://free-ebooks.appspot.com