create table StoneT
(
id int primary key identity,
stoneName_id int Foreign key references Stone_NameT(id) not null, --名称ID
stoneSurface_id int Foreign key references Stone_SurfaceT(id) not null, --板面ID
stoneThickness float not null, --厚度
position varchar(20), --用于什么部位
protect int not null, --防护(0:无防护,1:水性,2:油性)
[count] float not null, --数量(多少平方)
price float not null, --价格
Shape int default(0), --形状:规格板(0),毛板(1)异形(2)
unitType int default(0), --平方(0)、立方(1)、个(2)
)
上面是一张表,问题是:当添加一条记录时,如何准确的获取这条新记录的ID值呢?