Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Location
    New York
    Posts
    160

    Unanswered: SQL Find Text - use like ?

    I got a bunch of keywords in a field
    I want to search for them - would i use like ??

    example

    if field has the text "baby, childern, toddler"
    and i enter text 'child'
    would the Like command find that or would i have to use something else ?
    Beyond Limitation

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1

    Re: SQL Find Text - use like ?

    Yes, LIKE would find that - but only if you specified '%child%'. '%' matches any number of characters, so '%child%' will match any string of characters that contains 'child' somewhere, e.g. 'My eldest child is called Peter', 'I have seven grandchildren', 'Children are funny', 'I am a child' , 'child', or 'xxxxxxxxxxxxxxchildxxxxxxxxxxxxx'.

    On it's own 'child' would only match the string 'child'.

  3. #3
    Join Date
    Jan 2003
    Location
    New York
    Posts
    160
    ahh - ok thnx for the quick reply man
    Beyond Limitation

Posting Permissions

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