Reply to Comparing indexed MySQL datetime columns

Your name:

Reply:


Posted by laredotornado@zipmail.com on 03/08/06 19:26

Hi,

I have two columns, both MySQL 4 DATETIME types ...

TABLE1.depart_day
TABLE2.depart_day

and both are indexed. The problem is, all of TABLE1's dates have a
time of midnight (e.g. 2006-03-08 00:00:00" while TABLE2's columns have
times (e.g. 2006-03-08 12:45:00). I want to match rows where TABLE1
and TABLE2's depart day columns match in terms of year, month, and day
(don't care about time). How can I do this and also make use of any
available indexes?

Thanks, - Dave

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация