(1)日期类型 --datetime(表示日期) --timestamp(时间戳) 示例: create table mydatetime ( birdady datetime ) --sql为我们提供了一个专门的时间函数 --getdate() insert into mydatetime values(getdate()) --通过条语句就可以为字段写上时间 结果如下:、 birdady 2011-6-22 0:04.123
|
|
来自: jtll521 > 《spl server学习》