You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.8 KiB

  1. --Ʒɫ
  2. create table tb_product_attribute_list (
  3. id int identity, --id
  4. attribute_id int not null, --Էid
  5. attribute_value_id int not null, --ֵid
  6. product_id int not null default 0, --Ʒid
  7. title nvarchar(255) null default '', --ɫ
  8. path nvarchar(255) null default '', --ͼƬ·
  9. constraint PK_TB_PRODUCT_ATTRIBUTE_LIST primary key (id)
  10. )
  11. go
  12. declare @CurrentUser sysname
  13. select @CurrentUser = user_name()
  14. execute sp_addextendedproperty 'MS_Description',
  15. '����ID',
  16. 'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'id'
  17. go
  18. declare @CurrentUser sysname
  19. select @CurrentUser = user_name()
  20. execute sp_addextendedproperty 'MS_Description',
  21. '���Է���id',
  22. 'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'attribute_id'
  23. go
  24. declare @CurrentUser sysname
  25. select @CurrentUser = user_name()
  26. execute sp_addextendedproperty 'MS_Description',
  27. '����ֵid',
  28. 'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'attribute_value_id'
  29. go
  30. declare @CurrentUser sysname
  31. select @CurrentUser = user_name()
  32. execute sp_addextendedproperty 'MS_Description',
  33. '��Ʒid',
  34. 'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'product_id'
  35. go
  36. declare @CurrentUser sysname
  37. select @CurrentUser = user_name()
  38. execute sp_addextendedproperty 'MS_Description',
  39. '����',
  40. 'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'title'
  41. go
  42. declare @CurrentUser sysname
  43. select @CurrentUser = user_name()
  44. execute sp_addextendedproperty 'MS_Description',
  45. 'ͼƬ·��',
  46. 'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'path'
  47. go