随笔分类 -  oracle

摘要:一、字符函数1、upper:将每个字母变为大写返回。select upper('aBc') from dual得到:ABC2、lower:将每个字母变为小写返回。select lower('aBc') from dual得到:abc3、initcap:将每个单词的第一个字母大写,其它字母变为小写返回。select initcap('hello wOrld') from dual得到:Hello World4、concat:连接两个字符串。select concat('a','B') from dual得到:aBse 阅读全文
posted @ 2013-09-23 17:55 Dream Catcher 阅读(465) 评论(0) 推荐(0)
摘要:1、查看dblink:select * from dba_db_links2、创建dblink的用户需要有创建dblink的权限,授权语句:(public是可选的)grant create [public] database link to myAccount;3、创建语句:create public database link dblinkname connect to username identified by password using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = datab 阅读全文
posted @ 2013-09-22 14:38 Dream Catcher 阅读(943) 评论(0) 推荐(0)