I have a text field where I have data in between parentheses, like (TIPS) I would like to just extract the data from the parentheses. Does anyone have an example of how this works? I'm assuming you use a combination of mid and instr, but not sure how. Thanks
SELECT mid(textField, indexOf(textField,"("), indexOf(textField, ")") - indexOf(textField,"(")) FROM myTable
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.