Skip to content

Instantly share code, notes, and snippets.

@jonpemby
Created March 1, 2018 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonpemby/31ad70aef3c5eb3c6a2e26bebd91d5c1 to your computer and use it in GitHub Desktop.
Save jonpemby/31ad70aef3c5eb3c6a2e26bebd91d5c1 to your computer and use it in GitHub Desktop.
Find last part of a string after delimiter in SQL
SELECT SUBSTRING_INDEX("first_middle_last", '_', -1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment