Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to do a SELECT with a REGEXP_SUBSTR? #1032

Open
novafire99 opened this issue Jan 12, 2022 Discussed in #1031 · 2 comments
Open

Is it possible to do a SELECT with a REGEXP_SUBSTR? #1032

novafire99 opened this issue Jan 12, 2022 Discussed in #1031 · 2 comments

Comments

@novafire99
Copy link

Discussed in #1031

Originally posted by novafire99 January 9, 2022
Trying to do a select with Medoo, but I want to pass mysql/mariadb "REGEXP_SUBSTR(msg, '[0-9]+.[0-9]+.[0-9]+.[0-9]')" as one of the items of the select to extract an IP address from the txt record and return just that. Is it possible with Medoo? Works fine when I do it in the sql console. Maybe some way with the raw statement?

@novafire99
Copy link
Author

@catfan Just checking if this is possible?

@catfan
Copy link
Owner

catfan commented Mar 5, 2022

Yes, it's possible with Raw object. https://medoo.in/api/raw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants