Results 1 to 4 of 4

Thread: SQL - LIKE statement

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    15

    Thumbs up SQL - Select statement by date field

    Thanx a lot Sean and Glenn, it works
    One more ques:
    what if i need all the records by date field????
    e.g . if i need all the records with date > 1/1/99...
    then what would SQL be like....

    Select * from Details where date > "1/1/99"

    this one above doesn't works........
    if u know how, please let me know.....
    thanx again for ur time...
    Raj

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    The date field in sql statement should be surrounded by # not ".
    Select * from Details where field_name > #1/1/99#


  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    15

    error

    It still gives me error:

    [Microsoft][odbc Visual foxpro driver]Missing operand.

    Any ideas???? thanx

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    Try this:
    Select * from Details where field_name > #1/1/99#;

    Add ; at the end of the statement.



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