Click here to get back home

query problem after moving from mysql 3.0 to 5.0

 HomeNewsGroups | Search | About
 mailing.database.mysql    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
query problem after moving from mysql 3.0 to 5.0 xkp 10-19-2006
Get Chitika Premium
Posted by xkp on October 19, 2006, 8:34 am
Please log in for more thread options
i am having problems with this query which worked perfrcly on mysql
3.0.
It is able to extract dowloaders from a table and group them by date.


select count(*) AS downloaders, date_format(date,'%Y-%m-%d') AS
Datesmall, date_format(date,'%D %M %Y') AS Date from downloaders Group
By date_format(date,'%D %M %Y ') order by unix_timestamp(date)")


After moving to 5.0 the query does not work.
I dont have a qyery error but just the query retrieve always zero
items.
After i series of tests i noticed that what is not working is

where unix_timestamp(date) between unix_timestamp('" & From_YY & "-" &
From_MM & "-" & From_DD & "') and unix_timestamp('" & To_YY & "-" &
To_MM & "-" & To_DD & "23:59:59')

which i use to get only downloaders from a range of date.
But i dont know what changed from 3.0 to 5.0 in order to make the query
stop working.
any advice?


Similar ThreadsPosted
Moving lines on a MySQL database August 4, 2005, 6:17 am
moving mysql backup from Version 4.1.12 to 5.0.3 January 25, 2006, 8:52 am
Moving the ibdata1 file June 3, 2006, 9:58 pm
Calculating moving difference June 18, 2006, 3:42 pm
Moving databases from one hard drive to another ? July 1, 2005, 11:55 pm
Having problem with simple "NOT IN" query August 20, 2005, 8:40 am
Strange JOIN query problem January 27, 2006, 12:58 pm
Problem with accent Import to MySQL/Linux from MySQL Windows September 4, 2005, 1:54 am
Problem with MySQL Big Database October 27, 2005, 5:49 am
Mysql Replication Problem April 21, 2006, 1:15 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap