You are viewing a single comment's thread. Return to all comments →
Extract a substring from a string (start from the end, at position -5, extract 5 characters):
SELECT SUBSTR("SQL Tutorial", -5, 5) AS ExtractString;
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 7
You are viewing a single comment's thread. Return to all comments →
Extract a substring from a string (start from the end, at position -5, extract 5 characters):
SELECT SUBSTR("SQL Tutorial", -5, 5) AS ExtractString;