12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
建站问答 时间:2024-12-01 12:43:50
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
在Oracle中,SUBSTR函数用于从字符串中提取子字符串。语法:SUBSTR(string, start_position, [length])参数说明:string:要提取子字符串的字符串。start_position:指定开始提取的位
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
在Oracle中,SUBSTR函数用于从字符串中提取子字符串。
语法:
SUBSTR(string, start_position, [length])
参数说明:
string:要提取子字符串的字符串。
start_position:指定开始提取的位置,从 1 开始计数。
length:可选参数,指定要提取的子字符串的长度。如果省略该参数,则提取从 start_position 开始到字符串末尾的所有字符。
示例:
SELECT SUBSTR(‘Hello World’, 7) FROM dual;
结果:‘World’
SELECT SUBSTR(‘Hello World’, 7, 5) FROM dual;
结果:‘World’
SELECT SUBSTR(‘Hello World’, 7, 3) FROM dual;
结果:‘Wor’
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19