- 5
- 0
- 约16.13万字
- 约 26页
- 2016-12-03 发布于河南
- 举报
进销存系统 sq文件
进销存系统 sql文件
use master
go
if exists (select * from sysdatabases where name = SellManageSystem)
drop database SellManageSystem
go
create database SellManageSystem
go
use SellManageSystem
go
--创建客户信息表
if exists (select 1 from sysobjects where name = CustomerInfo)
drop table CustomerInfo
go
create table CustomerInfo
(
CustomerID int primary key identity(1000,1), --客户编号
CustomerName nvarchar(20) not null, --客户名称
CustomerAddress nvarchar(50) , --客户地址
CustomerPhone nvarchar(11), --客户电话
Taxno nvarchar(10) , --税号
Repute nvarchar(50), --信誉度
Country nvarchar(20), --国家
Province nvarchar(20) --省份
)
go
--创建供应商信息表
if exists (select 1 from sysobjects where name = ComponyInfo)
drop table ComponyInfo
go
create table ComponyInfo
(
ComponyID int primary key identity(1000,1), --供应商编号
ComponyName nvarchar(20) not null, --供应商名称
ComponyAddress nvarchar(50) , --供应商地址
ComponyPhone nvarchar(11), --供应商电话
Taxno nvarchar(10) , --税号
Country nvarchar(20), --国家
Province nvarchar(20) --省份
)
go
--创建产品信息表
if exists (select 1 from sysobjects where name = ProductInfo)
drop table ProductInfo
go
create table ProductInfo
(
ProductID int primary key identity(001,1), --产品编号
ComponyID int foreign key references ComponyInfo(ComponyID), --供应商编号
ProductName nvarchar(20), --产品名称
ProductType nvarchar(20), --产品类别
NumberPerMonth int , --月生产能力
Price money --单价
)
go
--创建库存信息表
if exists (select 1 from sysobjects where name = StorageInfo)
drop table StorageInfo
go
create table StorageInfo
(
StorageID int primary key identity(1,1), --库存信息编号
ProductID int foreign key references ProductInfo(ProductID), --产品编号
StorageAddress nvarchar(50), --库存地址
StorageNumber int --库存数量
)
go
--创建产品进库信息表
if exists (select 1 from sysobjects where name = StockInfo)
drop table StockInfo
go
create table StockInfo
(
StockID int primary key identity(001,1), --进库号
ProductID int foreign key references ProductInfo(ProductID), --产品编号
StockNumber int, --进库数量
Stock money, --进价
Stocksum money, --总价
ComponyID i
您可能关注的文档
- 环境词汇——Chna Daily.doc
- hack游戏教程.doc
- 【翟鸿森教授经典录】.doc
- WMIC 命令行理方式.doc
- 员工学习分享工作得.ppt
- FreeBSD72支持的网卡驱动列表.doc
- 中国学生健康体检理.ppt
- linux orcle安装操作步骤总结.doc
- 桌面云用户常见问手册.doc
- 口袋怪兽绿宝石攻(超详细).doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- 【花生十三】25公务员考试资料分析速算练习册及速算过程.pdf VIP
- mst2016说明书.pdf VIP
- 口腔科课件洁治.pptx
- 2025兴安盟公安局招聘165名留置看护警务辅助人员备考试题及答案解析.docx VIP
- 35KV变电站毕业设计(完整版).doc VIP
- AP微观经济学 2012年真题 (选择题+问答题) AP Microeconomics 2012 Released Exam and Answers (MCQ+FRQ).pdf VIP
- 上海师范大学天华学院公共课《大学计算机基础》期末试卷A(有答案).docx VIP
- 高中生对AI 技术应用的态度与认知调查问卷.docx VIP
- 2025年度”五个方面“专题组织生活会个人对照检查发言材料.docx VIP
- 南方医科大学各专业实习大纲汇编.pdf VIP
原创力文档

文档评论(0)