arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

substr

This section contains reference documentation for the substr function.

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

hashtag
Signature

SUBSTR(col, startIndex, endIndex)

hashtag
Usage Examples

name
name
select SUBSTR('Pinot', 1, -1) AS name
FROM ignoreMe

inot

select SUBSTR('Pinot', 0, 2) AS name
FROM ignoreMe

Pi