Skip to content

Instantly share code, notes, and snippets.

@ThijsFeryn
Last active June 9, 2016 10:13
Show Gist options
  • Select an option

  • Save ThijsFeryn/5edad37d853df3fa5f7cdace11f7e64c to your computer and use it in GitHub Desktop.

Select an option

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