6 ms·
The SQL statement: select * from diets where name like 'veg%an' Will match both 'vegan' and 'vegetarian'. The '%' wildcard matches any string of zero or mor
by biot 14y ago
The SQL statement:
select * from diets where name like 'veg%an'
Will match both 'vegan' and 'vegetarian'. The '%' wildcard matches any string of zero or more characters.
- chc 14y agoIncidentally, it's more commonly written as veg*n among non-nerds.
- colanderman 14y agoUnfortunately writing it twice causes HN to italicize stuff: vegn vegn :/