|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Take certain data from mysql
How do I take all the data in a database in range from 01-01-01 00:00:00 to 01-02-01 00:00:00 i have a column with dates+time in it, and i only need to take some data from a specific timerange
Is it something like this Select * FROM table where Date = "01-01-01 00:00:00 " to "01-02-01 00:00:00" In has to be in ASP |
|
#2
|
|||
|
|||
|
Hi ttopholm
try not to use your column name as Date, as it is a reserved word. Code:
Select * FROM table where MyDate between '01-01-01 00:00:00' and '01-02-01 00:00:00' |
|
#3
|
|||
|
|||
|
Cool THX
|
|
#4
|
|||
|
|||
|
your welcome. i haven't really used MySQL before, but i guess it should be the same as Access/MS SQL. Let me know if it works.
|
|
#5
|
|||
|
|||
|
It does
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Take certain data from mysql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|