高手求助:SQL Server数据库表自动增长字段的问题
我新建一个gg表,sql语句如下:
CREATE TABLE ggg(Id INT IDENTITY(1,1) PRIMARY KEY, title NVARCH(50),contentNVARCHAR(500),date Nvarchar(50))
连续向表中插入两条数据:
insert into ggg(title,content,date)
values('hello','hello world','2010-03-19 15:13')
insert into ggg(title,content,date)
values('你好','你好吗','2010-03-19 16:13')
我想要得到的结果:
id title content date
1 hello hello world 2010-03-19 15:13
2 你好 你好吗 2010-03-19 16:13
实际得到的结果:
id title content date
(null) hello hello world 2010-03-19 15:13
(null) 你好 你好吗 2010-03-19 16:13
求各位大虾帮忙,id已经是自增长字段了,为什么没有反应啊?小女子先多谢了!感激不尽!