E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
LPAD
SQL Server T-SQL
LPAD
& RPAD Functions (String Padding Equivalent to PadLeft & PadRight)
T-SQL語法,是用來產生固定長度前面補零的數字字串By DanielReadSubmitted Thu,2006-01-0514:31HereismymethodforachievingleftandrightstringpaddingintheMicrosoftSQLServerT-SQLlanguage.UnfortunatelyT-SQLdoesnotofferfunctionslikeO
巍巍边疆
·
2010-11-19 09:00
Oracle 构建定制 期间划分段 [类似期间表]
SQL>Select 2 To_char(Sysdate,'YYYY')||
Lpad
(Rownum,2,0)As期间, 3 To_Date(To_char
wangshengfeng1986211
·
2010-11-18 11:00
oracle
sql
Date
2010
oracle 中对LONG列进行查询
SQL> INSERT INTO T_LONG VALUES (1,
LPAD
(1, 32767, 'HELLO WORLD!')); 已创建 1 行。
navy0168
·
2010-11-15 09:00
java
oracle
sql
Oracle一些函数
lpad
nvl upper replace
lpad
在Oracle/PLSQL中,
lpad
函数将左边的字符串填充一些特定的字符,其语法格式如下:
lpad
(string1,padded_length,[pad_string])其中string1是需要粘贴字符的字符串
ljh0242
·
2010-11-10 10:18
Oracle
职场
休闲
oracle
Oracle一些函数
lpad
nvl upper replace
lpad
在Oracle/PLSQL中,
lpad
函数将左边的字符串填充一些特定的字符,其语法格式如下:
lpad
(string1,padded_length,[pad_string]) 其中string1
ljh0242
·
2010-11-10 10:18
oracle
职场
休闲
oracle 锁表查询 和 解锁
--查询谁锁定,谁等待 SELECT/*+rule*/
lpad
('',decode(l.xidusn,0,3,0))||l.oracle_usernameUser_name, o.owner,
zhoushuyan
·
2010-11-10 10:00
oracle
session
object
user
kill
System
查找数据库锁
SELECT /*+ rule */
lpad
(' ', decode(l.xidusn, 0, 3, 0)) || l.oracle_username
cenhonggang86830
·
2010-10-11 17:00
oracle
时间秒值转化为时分秒
将时间的秒值转化为时分秒格式: IF ( [时长]/3600>9 ) THEN ( to_char (trunc ([时长]/3600,0))||':'||
lpad
(
chenjialin2000
·
2010-10-08 11:00
sql
oracle的函数to_number-NVL-
LPAD
to_number和to_char性质是类似的; nvl函数: 从两个表达式返回一个非 null 值。 语法NVL(eExpression1, eExpression2)参数eExpression1, eExpression2 如果 eExpression1 的计算结果为 null 值,则 NVL( ) 返回 eExpression2。如果
wwty
·
2010-09-20 18:00
oracle
sql
oracle的函数to_number-NVL-
LPAD
to_number和to_char性质是类似的; nvl函数: 从两个表达式返回一个非 null 值。 语法NVL(eExpression1, eExpression2)参数eExpression1, eExpression2 如果 eExpression1 的计算结果为 null 值,则 NVL( ) 返回 eExpression2。如果
wwty
·
2010-09-20 18:00
oracle
sql
ORACLE 字符串操作(转)
ABC012');lower--------abc012■大写 selectupper('abc012');upper--------ABC012■左补全 selectlpad('abc',5,'0');
lpad
xiayang05
·
2010-09-03 17:00
oracle
sql
perl点滴知识
1.实现
lpad
函数 #append with blank before the strsub
lpad
{ my $str = shift; my $length= shift;
qidaoxp
·
2010-08-24 14:00
perl
perl点滴知识
1.实现
lpad
函数 #append with blank before the strsub
lpad
{ my $str = shift; my $length= shift;
qidaoxp
·
2010-08-24 14:00
perl
Oracle 递归
SELECT
LPAD
(' ',2*(LEVEL - 1), ' ')||DEPT_ID AS DEPT_ID, PAR
·
2010-08-19 23:00
oracle
Oracal中
Lpad
函数和Rpad函数
在Oracle/PLSQL中,
lpad
函数将左边的字符串填充一些特定的字符,其语法格式如下:
lpad
( string1, padded_length, [
sucre03
·
2010-08-19 19:42
职场
休闲
Lpad函数和Rpad函数
Oracal中
Lpad
函数和Rpad函数
在Oracle/PLSQL中,
lpad
函数将左边的字符串填充一些特定的字符,其语法格式如下:
lpad
( string1, padded_length, [
sucre03
·
2010-08-19 19:42
职场
休闲
Lpad函数和Rpad函数
Oracle笔记
某年的前一年的最后一天 SELECT add_months(to_date('2009'||'-12-31','yyyy-MM-dd'), -12) FROM dual; --获得12个月 select
lpad
yourgame
·
2010-08-19 11:00
oracle
sql
程式開發質量檢查(六)
檢察傳入的票期是否合法返回0表示檢察通過,返回1表示票期的後兩碼不合法//票期供4碼,前兩碼為月份數,後兩碼為某一天(必須為1-31之前的某個數字)INT li_daySELECTTO_NUMBER(SUBSTR(
LPAD
vnsoft
·
2010-08-16 14:00
sql
String
function
Integer
MySql生成订单编号的方法(含格式化字符串-自动补0)
insert into t_trading(trading_code) values(CONCAT('DD',DATE_FORMAT(now(),'%Y%m%d'),
LPAD
(LAST_INSERT_ID
gongmingwind
·
2010-08-14 14:00
sql
mysql
单行函数与组函数
(2) 字符处理函数——ØSUBSTR(要提取的字符串,要提取的起始字符位置,查询中要返回的字符串长度)ØLENGTH(‘’)返回字符串长度Ø
LPAD
(将填充的字符
banyingli
·
2010-08-07 16:00
Date
null
Lpad
()函数和Rpad()函数的用法
rpad函数: RPAD ( char1 , n [, char2] )
Lpad
()函数的用法:
lpad
函数将左边的字符串填充一些特定的字符其语法格式如下: &
Copperfield
·
2010-08-05 11:00
.net
oracle start with connect by base_pd_clazz
select
lpad
('test',10) from dual; 将返回“ test” select
lpad
('test',10,'ee') from dual
desert3
·
2010-08-03 21:00
oracle
oracle start with connect by base_pd_clazz
select
lpad
('test',10) from dual; 将返回“ test” select
lpad
('test',10,'ee') from dual
desert3
·
2010-08-03 21:00
oracle
oracle
lpad
函数
1在oracle的数据库里有个函数
LPAD
(String a,int length,String addString). 2作用:把addString添加到a的左边,length 是返回值的长度。
yaoAyao
·
2010-08-02 16:00
oracle
sql
C++
c
C#
Oracal的
Lpad
函数
在Oracle/PLSQL中,
lpad
函数将左边的字符串填充一些特定的字符,其语法格式如下:
lpad
( string1,
wotf23771
·
2010-07-25 23:00
oracle
.net
(2010-07-23)ORACLE的
lpad
函数、rpad函数用法
ORACLE的
lpad
函数、rpad函数用法语法:selectlpad('12345678',1,'0')fromdual;返回字符串‘12345678’的从左边长度为1的字符串,如果不够,左边补‘0’
nanyida0416sushe
·
2010-07-23 16:00
oracle
2010
Oracle查找锁定对象以及强制解除锁定的方法
--查找锁定对象 SELECT /*+ rule */
lpad
(' ', decode(l.xidusn, 0, 3, 0)) || l.oracle_username User_name
yhb3420
·
2010-06-13 16:00
oracle
ORACLE 字符串操作
ABC012');lower--------abc012■大写selectupper('abc012');upper--------ABC012■左补全selectlpad('abc',5,'0');
lpad
qq373591361
·
2010-06-09 15:00
oracle
sql
Date
String
null
application
数据库查锁
SELECT
lpad
(' ', decode(l.xidusn, 0, 3, 0)) || l.oracle_username User_name,  
huang552
·
2010-05-10 15:00
oracle
Oracle检索12个月
所以取12个月出来 select
lpad
(level,2,0) from dual connect by level<13 至于怎么左连接,拿出一个例子来先放到这里
PlayGod1984
·
2010-04-26 11:00
oracle
sql
C++
c
C#
oracle的sql生成日历(转自http://space.itpub.net/519536/viewspace-618320)
oracle的sql生成日历(转自http://space.itpub.net/519536/viewspace-618320) 1 select
LPAD
(Month, 20 - (20 - LENGTH
duduli
·
2010-04-18 09:00
Orcal中显示树结构查询语句【包括子查父和父查子】
实际开发中可能会用到树状查询结果,语句如下: select ID,
LPAD
(DEPT_NAME, LENGTH(DEPT_NAME) + (LEVEL * 2), ' ') dept_name
misswuyang
·
2010-04-16 10:00
oracle
.net
Blog
Orcal中显示树结构查询语句【包括子查父和父查子】
实际开发中可能会用到树状查询结果,语句如下: select ID,
LPAD
(DEPT_NAME, LENGTH(DEPT_NAME) + (LEVEL * 2), ' ') dept_name
misswuyang
·
2010-04-16 10:00
oracle
.net
Blog
Proc 正则问题
这个样子居然编译不过 EXEC SQL select 'A'||
LPAD
(SUBSTR(max(MOBILE_MODEL),2)+1,4,'0') into :codeMobileModel.mobileModel
rikugun
·
2010-03-17 15:00
sql
C++
c
C#
mobile
oracle
lpad
函数
1在oracle 的数据库里有个函数
LPAD
(String a,int length,String addString).
southking
·
2010-03-17 10:00
oracle
sql
C++
c
C#
LPAD
函数
1在oracle的数据库里有个函数
LPAD
(String a,int length,String addString).
wzwd111
·
2010-02-23 14:00
oracle
sql
C++
c
C#
ORACLE锁表查询
SELECT /*+ rule */
lpad
(' ',decode(l.xidusn ,0,3,0))||l.oracle_username User_
maincoolbo
·
2010-02-01 15:00
oracle
sql
脚本
OS
ORACLE锁表查询
SELECT /*+ rule */
lpad
(' ',decode(l.xidusn ,0,3,0))||l.oracle_username User_
maincoolbo
·
2010-02-01 15:00
oracle
sql
脚本
OS
Oracle/PLSQL:
Lpad
and Rpad Function
Oracle/PLSQL:
Lpad
Function: http://www.techonthenet.com/oracle/functions/
lpad
.php RPAD and
LPAD
Wuaner
·
2009-12-28 19:00
html
oracle
sql
PHP
.net
Oracle/PLSQL:
Lpad
and Rpad Function
Oracle/PLSQL:
Lpad
Function: http://www.techonthenet.com/oracle/functions/
lpad
.php RPAD and
LPAD
Wuaner
·
2009-12-28 19:00
html
oracle
sql
.net
PHP
Oracle/PLSQL:
Lpad
and Rpad Function
Oracle/PLSQL:
Lpad
Function: http://www.techonthenet.com/oracle/functions/
lpad
.php RPAD and
LPAD
Wuaner
·
2009-12-28 19:00
html
oracle
sql
.net
PHP
编号生成SQL(备忘)
select 'PG'||to_char(sysdate,'yyyy')||
LPAD
(NVL(MAX(SUBSTR(pcode, 7, 4)) + 1, 1), 4, '0') from hb_np_project_baseinfo
shishi11
·
2009-12-28 09:00
java
sql
ORACLE 字符串补零
标准函数
Lpad
可以实现左补零,但是如果多于需要长度,则会截断字符串。 如下: ----------------------- 情况一:需要补零。
zhuhuide2004
·
2009-12-21 10:00
oracle
Oracle中的空格函数和trim(' ')
1、可以使用
LPAD
和RPAD在字符串的左边 和右边填补空格。
271788203
·
2009-12-17 15:00
oracle
sql
Oracle中的空格函数和trim(' ')
1、可以使用
LPAD
和RPAD在字符串的左边 和右边填补空格。
271788203
·
2009-12-17 15:00
oracle
sql
数据库操作前面补零函数
数据库操作前面补零函数
lpad
(str,len,pad)往往在添加区号到数据库中,自动前面的零就消失掉了,此函数可以方便使用。
lqrensn
·
2009-11-13 17:00
数据库
oracle
--查看数据库锁 SELECT /*+ rule */
lpad
(' ',decode(l.xidusn ,0,3,0))||l.oracle_username User_name, o.owner
cbmyfirst
·
2009-10-26 19:00
oracle
sql connect by start with
select level||'层',
lpad
(' ',(level-1)*5)||unit_nm , sys_connect_by_path(unit_nm ,'@'),unit_nm,level from
01jiangwei01
·
2009-09-29 10:00
sql
数据库
1.orcale中允许函数没有参数 2.函数分为:单行函数和多行函数(聚合函数,平均,统计,求和)详细:1.字符函数:字符操纵函数(concat,substr,length,instr:取字符的位置,
lpad
lhgyy00
·
2009-09-28 14:00
apple
9i SQL notes
NULLIF–COALSECE–CASE–DECODECONCAT('Hello','World')SUBSTR('HelloWorld',1,5)LENGTH('HelloWorld')INSTR('HelloWorld','W')
LPAD
linsea
·
2009-09-12 21:00
SQL
C
C++
C#
Oracle
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他