I can’t figure out what the underscore character does in an SQLite like statement.
The wildcard character, %, is probably the same as in most other SQL databases.
So, what does the _ character do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The underscore is also the same as in most other SQL databases and matches any single character (i.e. it is the same as
.in a regular expression). From the fine manual:For example:
And just to make sure the results make sense: SQLite uses zero and one for booleans.