|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
How to search the date between or nearest to 25-Dec-yyyy
I got many start date and end date in database. I now want to get the date nearest or between 25-Dec-yyyy. How can I compare two date and get the result?
|
|
#2
|
|||
|
|||
|
Hey ww111!
It differs a lot from DB engine to engine...You can compare dates with the = operator anytime! However, there are (in SQL server for example) many functions for converting and processing dates such as: - convert() - datediff() Search in google for SQL date functions+<your DB engine> Good Luck ANibal. |
|
#3
|
|||
|
|||
|
I am using Oracle database.
![]() Now I try to search the date function. |
|
#4
|
|||
|
|||
|
Ok...not really my field, but here're some addresses that might help you out:
- http://www.psoug.org/reference/date_func.html - http://www.unix.org.ua/orelly/oracle/prog2/ch12_01.htm - http://www.google.com Good Luck! Anibal. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > How to search the date between or nearest to 25-Dec-yyyy |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|