加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Votescript.sql 8.75 KB
一键复制 编辑 原始数据 按行查看 历史
钟广源00 提交于 2023-07-04 02:08 . 新增数据库脚本
USE [master]
GO
/****** Object: Database [Zgy_vote] Script Date: 2023/7/4 2:04:30 ******/
CREATE DATABASE [Zgy_vote]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'Zgy_vote', FILENAME = N'D:\sql\MSSQL15.MSSQLSERVER\MSSQL\DATA\Zgy_vote.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
LOG ON
( NAME = N'Zgy_vote_log', FILENAME = N'D:\sql\MSSQL15.MSSQLSERVER\MSSQL\DATA\Zgy_vote_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
WITH CATALOG_COLLATION = DATABASE_DEFAULT
GO
ALTER DATABASE [Zgy_vote] SET COMPATIBILITY_LEVEL = 150
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [Zgy_vote].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [Zgy_vote] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [Zgy_vote] SET ANSI_NULLS OFF
GO
ALTER DATABASE [Zgy_vote] SET ANSI_PADDING OFF
GO
ALTER DATABASE [Zgy_vote] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [Zgy_vote] SET ARITHABORT OFF
GO
ALTER DATABASE [Zgy_vote] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [Zgy_vote] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [Zgy_vote] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [Zgy_vote] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [Zgy_vote] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [Zgy_vote] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [Zgy_vote] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [Zgy_vote] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [Zgy_vote] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [Zgy_vote] SET DISABLE_BROKER
GO
ALTER DATABASE [Zgy_vote] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [Zgy_vote] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [Zgy_vote] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [Zgy_vote] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [Zgy_vote] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [Zgy_vote] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [Zgy_vote] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [Zgy_vote] SET RECOVERY FULL
GO
ALTER DATABASE [Zgy_vote] SET MULTI_USER
GO
ALTER DATABASE [Zgy_vote] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [Zgy_vote] SET DB_CHAINING OFF
GO
ALTER DATABASE [Zgy_vote] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [Zgy_vote] SET TARGET_RECOVERY_TIME = 60 SECONDS
GO
ALTER DATABASE [Zgy_vote] SET DELAYED_DURABILITY = DISABLED
GO
ALTER DATABASE [Zgy_vote] SET ACCELERATED_DATABASE_RECOVERY = OFF
GO
EXEC sys.sp_db_vardecimal_storage_format N'Zgy_vote', N'ON'
GO
ALTER DATABASE [Zgy_vote] SET QUERY_STORE = OFF
GO
USE [Zgy_vote]
GO
/****** Object: Table [dbo].[Company] Script Date: 2023/7/4 2:04:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Company](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserId] [int] NULL,
[CompanyName] [nvarchar](max) NULL,
[Logo] [nvarchar](max) NULL,
[Jianjie] [nvarchar](max) NULL,
[Pcate] [nvarchar](max) NULL,
[Ptime] [datetime] NULL,
[Acate] [nvarchar](max) NULL,
[Pphoto] [nvarchar](max) NULL,
PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[Users] Script Date: 2023/7/4 2:04:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Users](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Email] [varchar](50) NOT NULL,
[Password] [varchar](50) NOT NULL,
PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Company] ON
INSERT [dbo].[Company] ([ID], [UserId], [CompanyName], [Logo], [Jianjie], [Pcate], [Ptime], [Acate], [Pphoto]) VALUES (1, 1, N'广东帅力有限公司', N'12', N'公司是做护肤产品,对帅哥美女进行美化护肤。', N'产品类', CAST(N'2023-07-04T01:21:25.097' AS DateTime), N'最佳奖', N'123')
SET IDENTITY_INSERT [dbo].[Company] OFF
GO
SET IDENTITY_INSERT [dbo].[Users] ON
INSERT [dbo].[Users] ([ID], [Email], [Password]) VALUES (1, N'111', N'111')
INSERT [dbo].[Users] ([ID], [Email], [Password]) VALUES (2, N'222', N'222')
SET IDENTITY_INSERT [dbo].[Users] OFF
GO
USE [master]
GO
ALTER DATABASE [Zgy_vote] SET READ_WRITE
GO
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化