Skip to content

Instantly share code, notes, and snippets.

@dineshsprabu
Last active February 5, 2016 08:08
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 dineshsprabu/0cf25620da85c424fa41 to your computer and use it in GitHub Desktop.
Save dineshsprabu/0cf25620da85c424fa41 to your computer and use it in GitHub Desktop.
MySQL query to extract email id inside angular braces < >
select replace(substring(`email_field`, LOCATE('<', `email_field`)+1),substring(`email_field`, LOCATE('>', `email_field`)),'') from table_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment