Skip to content

why should I use _ instead of * wildcard in "like"? #25

Answered by gordthompson
pnwork asked this question in Q&A
Discussion options

You must be logged in to vote

When Microsoft Access was first being developed over 30 years ago (initial release was 1992), the decision was taken to use * and ? as wildcard characters for the LIKE clause. We can assume that this was at least partly due to the fact that those characters were used by MS-DOS and Windows for pattern matching (e.g., del temp*.* from the DOS prompt), and therefore would be less confusing for Windows users new to working with databases.

When the Access ODBC driver and OLEDB provider were implemented, the decision was taken to use the ANSI standard % and _ characters for LIKE. This was probably a difficult choice, betting on whether it was worse to annoy the "Access people" (by switching to %)…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gordthompson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #24 on June 24, 2024 14:35.