Re: Problem loading records between 2 dates...
[Your question has nothing to do with MySQL Transactions. Please choose a more appropriate forum next time (e.g. newbie)]
Andrew Stokes wrote:
> SELECT id,subject,date,type,category,numreads,keywords
> FROM User1
> WHERE date BETWEEN '2/5/2006 1:48:46 AM' AND Now() AND type >= '1'
Your datetime literals should be in 'yyyy-mm-dd hh:mm:ss' format.
You can use the STR_TO_DATE() function to convert if necessary.
See
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
--
felix
Please use
BBCode to format your messages in this forum.
Subject
Views
Written By
Posted
2787
February 09, 2006 01:01AM
Re: Problem loading records between 2 dates...
1776
February 09, 2006 02:36AM
1792
February 09, 2006 04:00AM
1697
February 09, 2006 04:04AM
1842
February 09, 2006 04:53AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.