Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

what is the purpose of the 'wildcard' in data base queries

Discussion in 'Information Technology' started by Boyo, Jul 28, 2006.

  1. Boyo

    Boyo
    Expand Collapse
    Guest

    Hi...can anyone help?
     
  2. Loading...

    Similar Threads Forum Date
    Sikhism The Purpose of Life Sikh Sikhi Sikhism Oct 15, 2015
    What is the purpose of our life... Sikh Youth Aug 9, 2014
    Is Fasting For Social Or Political Purposes Allowed in Sikhi? Sikh Sikhi Sikhism Dec 5, 2013
    FAQs for Students What should be my purpose of life? Questions and Answers Nov 25, 2013
    Atheism Atheism a Religion? Government Says Yes for Tax Purposes Interfaith Dialogues Aug 23, 2013

  3. Rick Brandt

    Rick Brandt
    Expand Collapse
    Guest

    "Boyo" <Boyo@discussions.microsoft.com> wrote in message
    news:A8F99C95-FCAF-43E1-B9B4-DACD941562AB@microsoft.com...
    > Hi...can anyone help?


    Wildcard * represents "any number of characters"
    Wildcard ? represents "any single character"

    If I want all records with "Bob" in the [FirstName] field I use...
    WHERE [FirstName] = "Bob"

    If I want all records that start with the letter "B" in the [FirstName] field I
    use...
    WHERE [FirstName] Like "B*"

    If I want all records that start with the letter "B" in the [FirstName] followed
    by any two characters followed by a "D" and then anything afterwards field I
    use...
    WHERE [FirstName] Like "B??D*"

    In other database systems the * would be replaced by % and the ? would be
    replaced by _.

    --
    Rick Brandt, Microsoft Access MVP
    Email (as appropriate) to...
    RBrandt at Hunter dot com
     
  4. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    "Rick Brandt" <rickbrandt2@hotmail.com> wrote in message
    news:m8%7g.3047$fb2.2059@newssvr27.news.prodigy.net...
    >
    > In other database systems the * would be replaced by % and the ? would be
    > replaced by _.


    That may be a little misleading. If you're using ADO, you still use %
    instead of *, and _ instead of ?, even if you're using Access as the client.

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)
     

Share This Page