易截截图软件、单文件、免安装、纯绿色、仅160KB

Oracle/PLSQL: Lpad and Rpad Function

Oracle/PLSQL: Lpad Function:
http://www.techonthenet.com/oracle/functions/lpad.php
RPAD and LPAD [Oracle SQL]:
http://www.adp-gmbh.ch/ora/sql/rpad.html
引述
In Oracle/PLSQL, the lpad function pads the left-side of a string with a specific set of characters.
The syntax for the lpad function is:
lpad( string一, padded_length, [ pad_string ] )
string一 is the string to pad characters to (the left-hand side).
padded_length is the number of characters to return. If the padded_length is smaller than the original string, the lpad function will truncate the string to the size of padded_length.
pad_string is optional. This is the string that will be padded to the left-hand side of string1. If this parameter is omitted, the lpad function will pad spaces to the left-side of string1.
Applies To:
Oracle 八i, Oracle 九i, Oracle 十g, Oracle 11g
For example:
lpad('tech', 七); would return ' tech'
lpad('tech', 二); would return 'te'
lpad('tech', 八, '零'); would return '0000tech'
lpad('tech on the net', 15, 'z'); would return 'tech on the net'
lpad('tech on the net', 16, 'z'); would return 'ztech on the net'
本文来源:
我的异常网
Java Exception
Dotnet Exception
Oracle Exception
2556 - sql检索文中字段相等判断
2557 - ORA-12535: TNS:operation timed out
2558 - oracle增量导入更新
2559 - Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
2560 - the account is locked
2561 - 使用exp备份文件用当前日期做为文件名
2562 - sqlplus怎么看表的建立时间
2563 - oracle测试存储过程plsql无响应
2564 - ORA-01403: no data found
2565 - ORACLE存储过程写法
2566 - 怎样在服务里添加 OracleOraHome92TNSListener
2567 - 游标嵌套使用
2568 - ORA-01031 instufficent privileges
2569 - SQLPLUS导出数据换行
2570 - ORA-12154: TNS: 无法解析指定的连接标识符
2571 - oracle里对应mssql里addday()的函数是什么
2572 - 企业管理器上是否能实现备份
2573 - 如何在Oracle中建立作业
2574 - 怎么使用嵌套表
2575 - 怎么定义嵌套表


相关文档:

oracle install

1 、创建用户和组
 /usr/sbin/groupadd oinstall
 /usr/sbin/groupadd dba
 /usr/sbin/useradd -g oinstall -G dba oracle
2、配置OS核心参数
 1)编辑文件 /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmm ......

Oracle数据字典的导出

-- 查询某表的数据字典
 SELECT  A.TABLE_NAME AS "表名",A.COLUMN_NAME AS "字段名",
 DECODE(A.CHAR_LENGTH,0,DECODE(A.DATA_SCALE,NULL,A.DATA_TYPE,A.DATA_TYPE||'('||A.DATA_PRECISION||','||A.DATA_SCALE||')'),
 A.DATA_TYPE||'('||A.CHAR_LENGTH||')') as "字段类型1",A.DATA_TYPE AS "字段 ......

关于Oracle进程结构及后台进程简介


进程结构
进程是操作系统中的一种机制,它可执行一系列的操作步。在有些操作系统中使用作业(JOB)或任务(TASK)的术语。一个进程通常有它自己的专用存储区。ORACLE进程的体系结构设计使性能最大。
ORACLE实例有两种类型:单进程实例和多进程实例。
单进程ORACLE(又称单用ORACLE)是一种数据库系统,一个进程执行全部ORA ......

oracle建多个dblink

用tg4mssql链接oracle.
过程不在描述,google很多。
问题:
1、mssql express的时候,失败
将server用转义字符写出,成功。
HS_FDS_CONNECT_INFO="SERVER=SHAM0415\\SQLEXPRESS;DATABASE=GMT_KJ"
2、建多个的时候,不能解析。 tnsping 命令总不通过。
找了很多,同一个帖子,转了无数次。。
唉。。中国的 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号