Skip to content

Instantly share code, notes, and snippets.

@ThijsFeryn
Last active June 9, 2016 10:13
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 ThijsFeryn/5edad37d853df3fa5f7cdace11f7e64c to your computer and use it in GitHub Desktop.
Save ThijsFeryn/5edad37d853df3fa5f7cdace11f7e64c to your computer and use it in GitHub Desktop.
Find and replace in MySQL by last occurrence
SELECT CONCAT(TRIM(TRAILING 'feryn.eu' FROM 'feryn.eu.bla.feryn.eu'),'thijs.be')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment