I want to select headers that have a number after a specific character. Example:
SELECT * FROM table WHERE title LIKE '%- H(any number)'
How can I select any number in this expression 1-10000000 if the number exists?
SELECT * FROM table WHERE title REGEXP '.*- H[0-9]+'
This is similar to what you are looking for.
SELECT * FROM table WHERE title RLIKE '- H[:digit:]{1,7}$';
will provide you 1-9999999
Use regex :
SELECT ... FROM table WHERE title REGEXP '- H([1-9][0-9]{0,6}|10000000)$' ;
Source: https://habr.com/ru/post/1391563/More articles:Smooth scrolling for GridView - androidHow to use different sets of properties files on the build server and on the development machines? - javaShould events be volatile from the outside? - programming-languages ββ| fooobar.comGetting a unique number of hits in php - databaseRemote RMI registry - javaUnqualified XSD attribute references - xmlSearch / filter ListView by several criteria - javaHow to fix this PostgreSQL installation? - installationNSWindow does not receive keyboard events - macosWhat is the easiest way to use WEKA through C ++ code? - c ++All Articles