标签:specific string returns hand xpl col style argument plsql
This Oracle tutorial explains how to use the Oracle/PLSQL LPAD function with syntax and examples.
The Oracle/PLSQL LPAD function pads the left-side of a string with a specific set of characters (when string1 is not null).
The syntax for the LPAD function in Oracle/PLSQL is:
LPAD( string1, padded_length [, pad_string] )
The LPAD function returns a string value.
The LPAD function can be used in the following versions of Oracle/PLSQL:
Let‘s look at some Oracle LPAD function examples and explore how to use the LPAD function in Oracle/PLSQL.
For example:
table can use dual example.such as select lpad(‘tech‘,7) from dual;
LPAD(‘tech‘, 7); Result: ‘ tech‘ LPAD(‘tech‘, 2); Result: ‘te‘ LPAD(‘tech‘, 8, ‘0‘); Result: ‘0000tech‘ LPAD(‘tech on the net‘, 15, ‘z‘); Result: ‘tech on the net‘ LPAD(‘tech on the net‘, 16, ‘z‘); Result: ‘ztech on the net‘
标签:specific string returns hand xpl col style argument plsql
原文地址:http://www.cnblogs.com/yjhlsbnf/p/7790069.html