如何在sql server 2005中创建购物车数据库 [英] how to create shopping cart database in sql server 2005

查看:110
本文介绍了如何在sql server 2005中创建购物车数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我如何在sql server 2005中为购物车创建数据库。对于cart.Pls中的产品和子产品,请告诉我们。

Pls some one tell that how to create database for shopping cart in sql server 2005. for product and subproduct in cart.Pls some one tell.

推荐答案

创建带有主键的Products表和产品描述的所有其他字段。为SubProducts创建另一个表,其中外键链接到Products表中的主键,所有其他字段链接到子产品描述。



这就是你要求的。然而,它需要一个非常独立的数据库设计才能在购物车中使用。



检查这个开源项目的购物车和数据库设计。 http://www.nopcommerce.com/downloads.aspx [ ^ ]
Create a Products table with primary key and all other fields for product description . create another table for SubProducts with a foreign key linked to primary key from Products table and all other fields for sub product description.

This is just what you asked for. However it needs a very discrete database design to be used in a shopping cart.

Check this open source project for shopping cart and database design. http://www.nopcommerce.com/downloads.aspx[^]


这篇关于如何在sql server 2005中创建购物车数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆