I’m parsing a file and storing it’s name/value pairs in a mysql database. The zero values have a variety of digits: 0, 00, 0000. Is there a query to select all of them, without concatenating ‘or’ statements?
SELECT * FROM APP WHERE VALUE = '0' OR VALUE = '00' OR VALUE = '000';
Using REGEX:
SELECT * FROM APP WHERE VALUE REGEXP '0+';