Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Underscore matches any single char, so those patterns work fine. It’s an efficient way to match any small separator, like space, dashes, etc.


I didn't know _ is a metachar in LIKE expressions, thanks! Not the first time its syntax caught me off-guard.


It only has two, doesn't it? Underscore for "any single character", and percent for "any string of characters", AFAIK.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: