SUBSTRING
Last updated
Last updated
Returns the subset of a string based on the specified start position. ().
This function is partially supported in .
Output Code:
When the start_position
in Redshift is 0 or less, the SUBSTRING
function performs a mathematical operation (start_position + number_characters
). If the result is 0 or less, SUBSTRING
returns an empty string. In Snowflake, the behavior for start_position
when it is 0 or less differs, leading to different results.
SSC-EWI-RS0006: The behavior of the SUBSTRING function may differ when applied to binary data.