MySQL Forums
Forum List  »  Partitioning

Why is this an invalid hash function?
Posted by: avi weiss
Date: May 12, 2006 08:04AM

I want to have a hash value that is based on the full date, so I created this function, where pl_datetime is a datetime type:

date_add(pl_datetime, interval 0 day)+0

this functino appears to returm an int (ie 20060511), so not sure why that isnt valid, unless it is too large.

any help would be helpful

-avi

Options: ReplyQuote


Subject
Views
Written By
Posted
Why is this an invalid hash function?
5584
May 12, 2006 08:04AM


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.