-2

I need mysql query which brings the text after (e) symbol

eg. I have the following text in mysql table

test of my application (e) I'm so happy

after run query I need as a result I'm so happy

Machavity
  • 29,816
  • 26
  • 86
  • 96
Anri
  • 1,656
  • 2
  • 16
  • 34
  • Check out [substring_index](http://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_substring-index). – Vatev May 27 '14 at 19:55
  • Possible duplicate: http://stackoverflow.com/questions/2696884/mysql-split-value-from-one-field-to-two – sgeddes May 27 '14 at 19:57

1 Answers1

1

It should be fairly easy with substring_index()

SELECT SUBSTRING_INDEX(`column_name`, ')', -1) // return everything from the right of the closing parentheses
Funk Forty Niner
  • 74,372
  • 15
  • 66
  • 132
Jay Blanchard
  • 33,530
  • 16
  • 73
  • 113