SQL Server数据库中,QUARTZ建表语句

废话不多说,上语句,直接执行即可:

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_BLOB_TRIGGERS]    Script Date: 2022/2/14 19:23:15 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_BLOB_TRIGGERS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [TRIGGER_NAME] [varchar](200) NOT NULL,
    [TRIGGER_GROUP] [varchar](200) NOT NULL,
    [BLOB_DATA] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_CALENDARS]    Script Date: 2022/2/14 19:23:39 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_CALENDARS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [CALENDAR_NAME] [varchar](200) NOT NULL,
    [CALENDAR] [image] NOT NULL,
 CONSTRAINT [PK_QRTZ_CALENDARS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [CALENDAR_NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_CRON_TRIGGERS]    Script Date: 2022/2/14 19:23:55 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_CRON_TRIGGERS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [TRIGGER_NAME] [varchar](200) NOT NULL,
    [TRIGGER_GROUP] [varchar](200) NOT NULL,
    [CRON_EXPRESSION] [varchar](120) NOT NULL,
    [TIME_ZONE_ID] [varchar](80) NULL,
 CONSTRAINT [PK_QRTZ_CRON_TRIGGERS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [TRIGGER_NAME] ASC,
    [TRIGGER_GROUP] 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
USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_FIRED_TRIGGERS]    Script Date: 2022/2/14 19:24:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_FIRED_TRIGGERS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [ENTRY_ID] [varchar](95) NOT NULL,
    [TRIGGER_NAME] [varchar](200) NOT NULL,
    [TRIGGER_GROUP] [varchar](200) NOT NULL,
    [INSTANCE_NAME] [varchar](200) NOT NULL,
    [FIRED_TIME] [bigint] NOT NULL,
    [SCHED_TIME] [bigint] NOT NULL,
    [PRIORITY] [int] NOT NULL,
    [STATE] [varchar](16) NOT NULL,
    [JOB_NAME] [varchar](200) NULL,
    [JOB_GROUP] [varchar](200) NULL,
    [IS_NONCONCURRENT] [varchar](1) NULL,
    [REQUESTS_RECOVERY] [varchar](1) NULL,
 CONSTRAINT [PK_QRTZ_FIRED_TRIGGERS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [ENTRY_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

SET ANSI_PADDING OFF
GO

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_JOB_DETAILS]    Script Date: 2022/2/14 19:24:21 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_JOB_DETAILS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [JOB_NAME] [varchar](200) NOT NULL,
    [JOB_GROUP] [varchar](200) NOT NULL,
    [DESCRIPTION] [varchar](250) NULL,
    [JOB_CLASS_NAME] [varchar](250) NOT NULL,
    [IS_DURABLE] [varchar](1) NOT NULL,
    [IS_NONCONCURRENT] [varchar](1) NOT NULL,
    [IS_UPDATE_DATA] [varchar](1) NOT NULL,
    [REQUESTS_RECOVERY] [varchar](1) NOT NULL,
    [JOB_DATA] [image] NULL,
 CONSTRAINT [PK_QRTZ_JOB_DETAILS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [JOB_NAME] ASC,
    [JOB_GROUP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_LOCKS]    Script Date: 2022/2/14 19:24:34 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_LOCKS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [LOCK_NAME] [varchar](40) NOT NULL,
 CONSTRAINT [PK_QRTZ_LOCKS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [LOCK_NAME] 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

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_PAUSED_TRIGGER_GRPS]    Script Date: 2022/2/14 19:24:46 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_PAUSED_TRIGGER_GRPS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [TRIGGER_GROUP] [varchar](200) NOT NULL,
 CONSTRAINT [PK_QRTZ_PAUSED_TRIGGER_GRPS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [TRIGGER_GROUP] 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

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_SCHEDULER_STATE]    Script Date: 2022/2/14 19:24:57 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_SCHEDULER_STATE](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [INSTANCE_NAME] [varchar](200) NOT NULL,
    [LAST_CHECKIN_TIME] [bigint] NOT NULL,
    [CHECKIN_INTERVAL] [bigint] NOT NULL,
 CONSTRAINT [PK_QRTZ_SCHEDULER_STATE] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [INSTANCE_NAME] 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

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_SIMPLE_TRIGGERS]    Script Date: 2022/2/14 19:25:09 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_SIMPLE_TRIGGERS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [TRIGGER_NAME] [varchar](200) NOT NULL,
    [TRIGGER_GROUP] [varchar](200) NOT NULL,
    [REPEAT_COUNT] [bigint] NOT NULL,
    [REPEAT_INTERVAL] [bigint] NOT NULL,
    [TIMES_TRIGGERED] [bigint] NOT NULL,
 CONSTRAINT [PK_QRTZ_SIMPLE_TRIGGERS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [TRIGGER_NAME] ASC,
    [TRIGGER_GROUP] 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

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_SIMPROP_TRIGGERS]    Script Date: 2022/2/14 19:25:19 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_SIMPROP_TRIGGERS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [TRIGGER_NAME] [varchar](200) NOT NULL,
    [TRIGGER_GROUP] [varchar](200) NOT NULL,
    [STR_PROP_1] [varchar](512) NULL,
    [STR_PROP_2] [varchar](512) NULL,
    [STR_PROP_3] [varchar](512) NULL,
    [INT_PROP_1] [int] NULL,
    [INT_PROP_2] [int] NULL,
    [LONG_PROP_1] [bigint] NULL,
    [LONG_PROP_2] [bigint] NULL,
    [DEC_PROP_1] [numeric](13, 4) NULL,
    [DEC_PROP_2] [numeric](13, 4) NULL,
    [BOOL_PROP_1] [varchar](1) NULL,
    [BOOL_PROP_2] [varchar](1) NULL,
 CONSTRAINT [PK_QRTZ_SIMPROP_TRIGGERS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [TRIGGER_NAME] ASC,
    [TRIGGER_GROUP] 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

USE 数据库名称
GO

/****** Object:  Table [dbo].[QRTZ_TRIGGERS]    Script Date: 2022/2/14 19:25:34 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[QRTZ_TRIGGERS](
    [SCHED_NAME] [varchar](120) NOT NULL,
    [TRIGGER_NAME] [varchar](200) NOT NULL,
    [TRIGGER_GROUP] [varchar](200) NOT NULL,
    [JOB_NAME] [varchar](200) NOT NULL,
    [JOB_GROUP] [varchar](200) NOT NULL,
    [DESCRIPTION] [varchar](250) NULL,
    [NEXT_FIRE_TIME] [bigint] NULL,
    [PREV_FIRE_TIME] [bigint] NULL,
    [PRIORITY] [int] NULL,
    [TRIGGER_STATE] [varchar](16) NOT NULL,
    [TRIGGER_TYPE] [varchar](8) NOT NULL,
    [START_TIME] [bigint] NOT NULL,
    [END_TIME] [bigint] NULL,
    [CALENDAR_NAME] [varchar](200) NULL,
    [MISFIRE_INSTR] [smallint] NULL,
    [JOB_DATA] [image] NULL,
 CONSTRAINT [PK_QRTZ_TRIGGERS] PRIMARY KEY CLUSTERED 
(
    [SCHED_NAME] ASC,
    [TRIGGER_NAME] ASC,
    [TRIGGER_GROUP] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值