首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

求解:SQL server 2000,该如何处理

2012-01-09 
求解:SQL server 2000createtabletest.dbo.products(p_idsmallintidentity(1000,1),p_namechar(10)notnull

求解:SQL server 2000
create   table   test.dbo.products(
p_id   smallint   identity(1000,1),
p_name   char(10)   not   null,
price   money   default   0.01,
quantity   smallint   null,
sunvalue   as   price*quantity
)on   [primary]

中的   primay   是指什么?

[解决办法]
看好了 是 primay key 主键的意思
[解决办法]
创建数据库中的对象时,如果没有指定其所属的文件组,那么就将这些对象指派到默认文件组。

在初始情况下,主文件组 PRIMARY 是默认文件组。

热点排行