Re: Age old - Sort between two dates...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ah...
MySQL Version 4.0.15
I've since found this...

MySQL supports the between operator for the DATE field.

    SELECT *
    FROM   Appointments 
    WHERE  Moment BETWEEN StartTime AND EndTime ORDER BY StartTime;

but that doesn't appear to work?
Well confused now...?





Sai Hertz And Control Systems <sank89@xxxxxxxxxxxxx> 
Sent by: sank89@xxxxxxxxxxxxx
22/12/2003 17:25
Please respond to
aspire420@xxxxxxxxxx


To
Tristan.Pretty@xxxxxxxxxxxxxxxx
cc
php-db@xxxxxxxxxxxxx
Subject
Re:  Age old - Sort between two dates...






Dear Tristan Pretty,

>I have a date field in my database, and want to select all entries in the 

>database from date 1 --> date 2
>I'll let the user decide what dates...
> 
>
What Database are you using and its version this will give you replies 
not google searches

>Can anyone point me in the right direction as to what command I need?
>
>Sorry to be a dunce, but I can't find this one...
>
>Tris...
>
>*********************************************************************
>The information contained in this e-mail message is intended only for 
>the personal and confidential use of the recipient(s) named above. 
>If the reader of this message is not the intended recipient or an agent
>responsible for delivering it to the intended recipient, you are hereby 
>notified that you have received this document in error and that any
>review, dissemination, distribution, or copying of this message is 
>strictly prohibited. If you have received this communication in error, 
>please notify us immediately by e-mail, and delete the original message.
>***********************************************************************
>
>
> 
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




*********************************************************************
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***********************************************************************


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux