Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 488 Bytes

File metadata and controls

31 lines (22 loc) · 488 Bytes
description
This section contains reference documentation for the substr function.

substr

Get substring of the input string from start to endIndex. Index begins at 0. Set endIndex to -1 to calculate till end of the string

Signature

SUBSTR(col, startIndex, endIndex)

Usage Examples

select SUBSTR('Pinot', 1, -1) AS name
FROM ignoreMe
name
inot
select SUBSTR('Pinot', 0, 2) AS name
FROM ignoreMe
name
Pi