Need to get rows starting with digit e.g. '1test', '32 test'. I tried
SELECT * FROM table WHERE name LIKE '[0-9]%'
as I used to do in MSSQL but it wasn't successful.
Try this:
SELECT * FROM table WHERE name ~ '^[0-9]'
This uses a POSIX regular expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With