Date and time manipulation in SQL server 2000
---------------- Selecting only the date part from a datetime column --------------
/* Creating a Test Table */
Create Table MyDateTest99
(
datetime
)
go
/* Inserting the test value into the table */
insert into MyDateTest99 values (getdate())
go
/* Selecting the result */
select convert(varchar,DateColumn,108) from MyDateTest99
go
/* Performing Cleanup */
drop table MyDateTest99
go
powered by performancing firefox
No comments:
Post a Comment