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 - 怎么定义嵌套表
相关文档:
作者:Chris Schalk
轻松构建一个混搭应用程序,以使用 Oracle XML DB 将 Oracle 数据与 Google Maps API 集成。
2007 年 8 月发布
正如您知道的那样,许多年以前,Oracle 就能够从数据库即时生成 XML。除了从 Oracle 数据库生成 XML,还可以使用多种语言(如 Java Servlets 和 JDBC)将生成的数据 XML 发布到 Web。 ......
进程结构
进程是操作系统中的一种机制,它可执行一系列的操作步。在有些操作系统中使用作业(JOB)或任务(TASK)的术语。一个进程通常有它自己的专用存储区。ORACLE进程的体系结构设计使性能最大。
ORACLE实例有两种类型:单进程实例和多进程实例。
单进程ORACLE(又称单用ORACLE)是一种数据库系统,一个进程执行全部ORA ......
介绍to_char(数字, ‘格式’),比较常用的格式
9 表示有效位数
0 用0补足位数
B 用空格补足位数
原数的位置有实际数字占位的时候,0和9的效果是一样的。
0和9的区别在于格式中的那一位置实际数字没有站位的情况下。
select to_char(0.45,'0.99'); 结果是0.45
select ......
用tg4mssql链接oracle.
过程不在描述,google很多。
问题:
1、mssql express的时候,失败
将server用转义字符写出,成功。
HS_FDS_CONNECT_INFO="SERVER=SHAM0415\\SQLEXPRESS;DATABASE=GMT_KJ"
2、建多个的时候,不能解析。 tnsping 命令总不通过。
找了很多,同一个帖子,转了无数次。。
唉。。中国的 ......