create table Cart
(
   [UserID] uniqueidentifier not null,
   [ProductID] int not null,
   [ProductName] varchar(80) not null,
   [Price] [decimal](10, 2) NOT NULL,
   [ImagePath] [varchar](100) NULL,
   Quantity int not null,
   IsAnonymous bit not null
)

alter table Cart
add constraint [PK_Cart] primary key CLUSTERED([USerID],[ProductID]) on [Primary]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
相关资源
相似解决方案