Re: Storing time and search
Posted by:
Paul Svirin
Date: September 03, 2009 03:00PM
As for me storing date like in approach 2) is not good. Because in approach 1) you can create and index and the optimizer will perform index seek while searching on that column.
For approach 2) the oprimizer cannot predict the value of TIME( <datetime_column> ). Thus the table scan will be selected for search.
For approach 1): create the char( 5 ) column and the index on it. It will work perfectly.
--------------
StarWind Software developer (
http://www.starwindsoftware.com )
Subject
Views
Written By
Posted
3781
July 03, 2009 01:18AM
Re: Storing time and search
1703
September 03, 2009 03:00PM
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.