Adr*_*der 41
在SQL Server中,您可以使用 SUBSTRING
SELECT SUBSTRING('hello', 3, 1)
Run Code Online (Sandbox Code Playgroud)
注意:索引是从1开始的.
在Oracle中,使用SUBSTR
语法是SUBSTR(<string to parse>,<start position>,(<length>))- 即
SELECT SUBSTR('hello',3,1)
Run Code Online (Sandbox Code Playgroud)
起始位置和长度是一个,而不是从零开始.零被接受,但将被解释为1.
| 归档时间: |
|
| 查看次数: |
77226 次 |
| 最近记录: |