![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql server
文章平均质量分 78
wunai616568168
这个作者很懒,什么都没留下…
展开
-
sqlserver日期函数
SQLServer时间日期函数详解,SQLServer,时间日期,1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-10-15')原创 2013-01-05 15:57:35 · 566 阅读 · 0 评论 -
sql 自增字段 int identity(1,1)
sql 自增号2009-06-16 10:471: 自增列 类型为:int identity(1,1) 当然也可以是bigint,smallinteg: create table tbName(id int identity(1,1),descriptionvarchar(20))或在用企业管理器设计表字段时,将字段设为int,将标识设为是,其它用默认即可IDENTITY (给转载 2013-01-15 09:43:04 · 15282 阅读 · 0 评论