Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dai.hop
Starting Member
3 Posts |
Posted - 2007-04-20 : 17:17:32
|
| Hi,Is it possible to select a record by just the date part of the data type TIMESTAMP?date_time 2007-04-20 16:27:01For example, a query to select all records added today.Thanks very much,dai.hop |
|
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2007-04-20 : 17:29:09
|
| yes. something like this: SELECT ...FROM..WHERE YourDateColumn >= '20070420'************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
|
dai.hop
Starting Member
3 Posts |
Posted - 2007-04-20 : 18:22:27
|
| Stunning, thanks very much! |
 |
|
|
|
|
|