We help IT Professionals succeed at work.
Get Started

Filter mysql result after certain text (regex)

56 Views
Last Modified: 2020-01-09
Note:The table itsels is irrelavent to the question and as such it's not posted. (becuase the query is correct).

My question is :
Is there an SQL way to filter (such as regex) only select (not to update the table just display when queried)
out everything after the pipeline.



1) I only want to display/query not update the query results/
Here is the query result (which is working fine and the output is what should be outputed)   the "pipe " /  "|" delimiter is not another column
I will repeat again so it's not confusing
the "pipe " /  "|" delimiter is not another column it's one string.

3)The query

SELECT meta_value FROM wp_postmeta WHERE meta_key LIKE 'etimeclockwp-in%'

2)  the output (this is one column).
1576486935|8
1576141273|21
1574067745|23

3) Sample output after the questioned query  :
1576486935
1576141273
1574067745

Thank You.
Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE