限制网站频繁访问
程序员文章站
2022-06-04 18:14:07
...
CREATE TABLE [dbo].[Zz_AccessIP]( [IP] [nvarchar](50) NOT NULL, [FirstDateTime] [datetime] NOT NULL, [LastDateTime] [datetime] NOT NULL, [Times] [int] NOT NULL, CONSTRAINT [PK_Zz_AccessIP] PRIMARY KEY CLUSTERED ( [IP] 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].[Zz_AccessIP] ADD CONSTRAINT [DF_Zz_AccessIP_FirstDateTime] DEFAULT (getdate()) FOR [FirstDateTime] GO ALTER TABLE [dbo].[Zz_AccessIP] ADD CONSTRAINT [DF_Zz_AccessIP_LastDateTime] DEFAULT (getdate()) FOR [LastDateTime] GO ALTER TABLE [dbo].[Zz_AccessIP] ADD CONSTRAINT [DF_Zz_AccessIP_Times] DEFAULT ((0)) FOR [Times] GO
上一篇: ROS入门21讲笔记——古月居
下一篇: 回调:用匿名函数为组件添加功能