Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3307616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:25:36+00:00 2026-05-17T21:25:36+00:00

The SQL wildcards % and _ are well documented and widely known. However as

  • 0

The SQL wildcards “%” and “_” are well documented and widely known. However as w3schools explains, there are also “charlist” style wildcards for matching a single character within or outside a given range, for example to find all the people called Carl but not those called Earl:

select * from Person where FirstName like '[A-D]arl'

… or to find the opposite, use either:

select * from Person where FirstName like '[!A-D]arl'

or (depending on the RDBMS, presumably):

select * from Person where FirstName like '[^A-D]arl'

Is this type of wildcard part of the SQL-92 standard, and what databases actually support it? For example:

  • Oracle 11g doesn’t support it
  • SQL Server 2005 supports it, with the negation operator being “^” (not “!”)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:25:37+00:00Added an answer on May 17, 2026 at 9:25 pm

    The SQL-99 Standard has a SIMILAR TO predicate which uses “charlist” style as well as the “%” and “_” wildcard characters.

    Nothing similar (no pun intended) in the SQL-92 Standard, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SQL novice here. I'm trying to get a list of invoice numbers. There are
In my SQL statement I use wildcards. But when I try to select something,
How can I build in wildcards to my LINQ To SQL lambda expression? This
I need to match certain string with wildcards, pretty much like with SQL LIKE.
Is there a way to do a SQL query with a wildcard or search
I'm having an issue using the % wildcard with a MySQL query. http://www.w3schools.com/sql/sql_like.asp Having
We have a Single Statement FUNCTION in SQL Server 2005 which uses CONTAINSTABLE(). All
Is it possible to string together multiple SQL LIKE wildcards in one query -
SQL Server 2005 I have an SQL Function (ftn_GetExampleTable) which returns a table with
SQL Server 2008 Profiler always profiles all databases. I want to restrict profiling or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.