• powerdesign 生成SQLserver2018语句的修改


    红框中的替换为下图即可执行成

    mysql 成功表:

    SET NAMES utf8mb4;
    SET FOREIGN_KEY_CHECKS = 0;
    
    -- ----------------------------
    --  Table structure for `bb_sort`
    -- ----------------------------
    DROP TABLE IF EXISTS `bb_sort`;
    CREATE TABLE `bb_sort` (
      `id` varchar(64) NOT NULL COMMENT '编号',
      `uid` varchar(64) DEFAULT NULL COMMENT '用户标识',
      `sort_name` varchar(255) DEFAULT NULL COMMENT '分类名称',
      `sort_img` varchar(255) DEFAULT NULL COMMENT '分类图标',
      `priority` int(3) DEFAULT NULL COMMENT '优先权',
      `income` tinyint(1) NOT NULL COMMENT '支出收入标识',
      `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '创建者',
      `create_date` datetime DEFAULT NULL COMMENT '创建时间',
      `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '更新者',
      `update_date` datetime DEFAULT NULL COMMENT '更新时间',
      `remarks` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '备注信息',
      `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '0' COMMENT '删除标记',
      `object_id` varchar(50) DEFAULT NULL COMMENT '唯一标识',
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    SET FOREIGN_KEY_CHECKS = 1;
    

      

    SQLserver成功表

    USE [jeesite]
    GO
    
    /****** Object:  Table [dbo].[bb_sort]    Script Date: 2019/7/6 下午9:36:55 ******/
    SET ANSI_NULLS ON
    GO
    
    SET QUOTED_IDENTIFIER ON
    GO
    
    CREATE TABLE [dbo].[bb_sort](
    	[id] [varchar](64) NOT NULL,
    	[uid] [varchar](64) NULL,
    	[sort_name] [varchar](255) NULL,
    	[sort_img] [varchar](255) NULL,
    	[priority] [int] NULL,
    	[income] [tinyint] NOT NULL,
    	[create_by] [varchar](64) NULL,
    	[create_date] [datetime] NULL,
    	[update_by] [varchar](64) NULL,
    	[update_date] [datetime] NULL,
    	[remarks] [varchar](255) NULL,
    	[del_flag] [char](1) NOT NULL,
    	[object_id] [varchar](50) NULL,
    PRIMARY KEY NONCLUSTERED 
    (
    	[id] 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
    
    ALTER TABLE [dbo].[bb_sort] ADD  DEFAULT ('0') FOR [del_flag]
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'id'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户标识' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'uid'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分类名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'sort_name'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分类图标' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'sort_img'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'优先权' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'priority'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'支出收入标识' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'income'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建者' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'create_by'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'create_date'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'更新者' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'update_by'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'更新时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'update_date'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注信息' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'remarks'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'删除标记' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'del_flag'
    GO
    
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'唯一标识' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'bb_sort', @level2type=N'COLUMN',@level2name=N'object_id'
    GO
    

      

    www.beicaiduo.com
  • 相关阅读:
    KVM源代码阅读--内核版本3.17.4
    最新的裸机联想笔记本装win7系统/SSD(固态硬盘)上安装win7系统/联想K4450A i7装win7系统
    Vmaware复制后的虚拟机不能上网问题解决
    KVM基于X86硬件辅助的虚拟化技术实现机制【转】
    KVM和QEMU简介
    笔记--[基于完全虚拟化的安全监控技术研究_张丽(2013)]
    win8预装系统环境下安装win7问题以及双操作系统安装解决
    VM 操作系统实例化(基于 KVM 的虚拟化研究及应用--崔泽永(2011))的论文笔记
    VMware vsphere Hypervisor、VMware vsphere和VMware Workstation小记
    虚拟化、(完)全虚拟化、半虚拟化和准虚拟化技术个人总结
  • 原文地址:https://www.cnblogs.com/hoge66/p/11144281.html
Copyright © 2020-2023  润新知