博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年8月23日

摘要: SQL中的单记录函数 1.ASCII 返回与指定的字符对应的十进制数; SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE --------- --------- --------- --------- 65 97 48 32 2.CHR 给出整数... 阅读全文

posted @ 2010-08-23 20:20 AndyZhou 阅读(163) 评论(1) 推荐(0) 编辑

摘要: Oracle基本语法1>字符处理upper(str)---将字符串str全部转换成大写lower(str)---将字符串str全部转换成小写initcap(str)---将字符串中每个单词的首字母大写concat(str1,str2)---将字符串str1与str2连接起来(也可以通过'||'号直接相连)substr(str,a,b)---取字符串str中的指定字符,从位置a开始取长度为b的... 阅读全文

posted @ 2010-08-23 14:45 AndyZhou 阅读(2110) 评论(0) 推荐(0) 编辑