美文网首页
2018-11-04

2018-11-04

作者: da5f02303c61 | 来源:发表于2018-11-04 18:07 被阅读0次

    智慧商超管理系统

    E-R图


    X7P0JRP8XB[IVES]EQWC@{X.png

    创建数据表的代码
    USE [2017270380]
    GO
    /****** Object: Table [dbo].[收银员] Script Date: 10/30/2018 16:28:35 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[收银员](
    [工号] [int] NOT NULL,
    [姓名] varchar NULL,
    [密码] varchar NULL,
    [电话] varchar NULL,
    CONSTRAINT [PK_收银员] PRIMARY KEY CLUSTERED
    (
    [工号] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    /****** Object: Table [dbo].[商品] Script Date: 10/30/2018 16:28:35 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[商品](
    [商品号] [int] NOT NULL,
    [商品名称] varchar NULL,
    [价格] varchar NULL,
    CONSTRAINT [PK_商品] PRIMARY KEY CLUSTERED
    (
    [商品号] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    /****** Object: Table [dbo].[库管员] Script Date: 10/30/2018 16:28:35 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[库管员](
    [工号] [int] NOT NULL,
    [姓名] varbinary NULL,
    [密码] varchar NULL,
    [电话] varchar NULL,
    CONSTRAINT [PK_库管员] PRIMARY KEY CLUSTERED
    (
    [工号] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    /****** Object: Table [dbo].[供应商] Script Date: 10/30/2018 16:28:35 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[供应商](
    [代码] [int] NOT NULL,
    [名称] varchar NULL,
    [地点] varchar NULL,
    [联系人] varchar NULL,
    [电话] varchar NULL,
    CONSTRAINT [PK_供应商] PRIMARY KEY CLUSTERED
    (
    [代码] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO

    相关文章

      网友评论

          本文标题:2018-11-04

          本文链接:https://www.haomeiwen.com/subject/czqdxqtx.html