Results 1 to 2 of 2

Thread: question about SQL statement

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    35

    Exclamation

    I am trying to do a WHERE/LIKE clause with a wildcard. I read in a book to use the '*' operator. It didn't work. Example:
    Select * FROM KaraokeList WHERE KaraokeList.Title LIKE 'A*'

    I worked on it for a few hours and then tried the '%' operator. It finally worked. Example:
    Select * FROM KaraokeList WHERE KaraokeList.Title LIKE 'A%'

    Can anyone tell me why the '*' didn't work but the '%' did. Everywhere I've read tells me to use the '*'. Thank you very much!

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Presumably you are in SQL Server - % is the wild card char in SQL Server whereas Access and ADO use *. It is application specific.

    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width