0
How can I make a Mysql query that only searches for results that start with numbers and special characters, I know this is done with the LIKE, but I still don’t know how to get that result...
Example:
SELECT * FROM accounts
WHERE account_name LIKE '(qualquer caractere especial)%', LIKE '(qualquer número)%';
Here you have an answer, https://answall.com/questions/80793/query-usando-operator-like
– Alison Walker
so far I know, but I want to take only names that start with special characters and that start with numbers too
– user106463
cite examples? which special characters?
– novic
It is any special character followed by anything like "(any special character)%" and numbers too, for example "(any number)%"
– user106463
Try:
REGEXP_LIKE(seu_campo, '^[^A-Z].+') = 0
.– anonimo
I was able to get the result
– user106463