|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Comparison with two date
Hello all:
I want to retrieve some data between two date for example I want to get all of the students between 2002/4/7 and 2003/8/8.How should I write the sql ? thank you very much Mohsen |
|
#2
|
|||
|
|||
|
SELECT col1, col2, col3, ... FROM students WHERE date1 >= 20020407 AND date1 <= 20030808
That's one way to do it. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Comparison with two date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|