Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Glob (programming)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===SQL=== The [[SQL]] {{code|LIKE}} operator has an equivalent to {{code|?}} and {{code|*}} but not {{code|[β¦]}}. {| class="wikitable" |- ! Common wildcard ! SQL wildcard ! Description |- | {{code|?}} | {{code|_}} | matches any single character |- | {{code|*}} | {{code|%}} | matches any number of any characters including none |} Standard SQL uses a glob-like syntax for simple string matching in its <code>LIKE</code> operator, although the term "glob" is not generally used in the SQL community. The percent sign ({{code|%}}) matches zero or more characters and the underscore ({{code|_}}) matches exactly one. Many implementations of SQL have extended the <code>LIKE</code> operator to allow a richer pattern-matching language, incorporating character ranges ({{code|[β¦]}}), their negation, and elements of regular expressions.<ref name="transact-sql-like"/>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)