I am trying to write a query which returns string ending with zero or more digits.
For example, I have strings 'amit', 'amityy', 'amit001'. I want to only return 'amit' and 'amit001'.
I tried LIKE 'amit%', but not get success.
Checks if the string starts with amit and that there are only numbers after amit:
LIKE 'amit%' AND NOT LIKE 'amit%[^0-9]%'
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