|
-
Apr 27th, 2000, 03:47 AM
#1
Thread Starter
New Member
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
-
Apr 27th, 2000, 03:56 AM
#2
Hyperactive Member
The date field in sql statement should be surrounded by # not ".
Select * from Details where field_name > #1/1/99#
-
Apr 27th, 2000, 11:48 PM
#3
Thread Starter
New Member
error
It still gives me error:
[Microsoft][odbc Visual foxpro driver]Missing operand.
Any ideas???? thanx
-
Apr 28th, 2000, 05:35 AM
#4
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|