I have a table of tweets stored in the body
field of the table. I run the following SQL query to check whether the tweet has an @mention
:
SELECT username, created, body FROM mytable WHERE body REGEXP '@([a-zA-Z0-9\_\.]+)' ;
It works, and it gets me the rows that match the REGEXP
. Is it possible to just return the @mentions
in the body rather than the entire body (same as the python re.findall()
function? The table is big and doing analysis on all of it is taking too long, and all I really need are the @mentions
from each body
field.