use master
go
if exists(select * from sysdatabases where name='MultiTHMonitorDB')
drop database MultiTHMonitorDB
go
create database MultiTHMonitorDB
on primary
(
name='MultiTHMonitorDB_data',
filename='D:\DB\MultiTHMonitorDB_data.mdf',
size=100MB,
filegrowth=50MB
)
log on
(
name='MultiTHMonitorDB_log',
filename='D:\DB\MultiTHMonitorDB_log.ldf',
size=100MB,
filegrowth=50MB
)
go
use MultiTHMonitorDB
go
--创建《用户表》
if exists(select * from sysobjects where name='SysAdmin')
drop table SysAdmin
go
create table SysAdmin
(
LoginId int identity(10000,1) primary key, --用户Id
LoginName varchar(100) not null,
LoginPwd varchar(20) not null,
ParamSet bit not null,
Recipe bit not null,
HistoryLog bit not null,
HistoryTrend bit not null,
UserManage bit not null
)
go
insert into SysAdmin(LoginName,LoginPwd,ParamSet,Recipe,HistoryLog,HistoryTrend,UserManage) values('Admin','123',1,1,1,1,1)
Select * from SysAdmin
if exists(select * from sysobjects where name='SysLog')
drop table SysLog
go
create table SysLog (
Id int identity(1,1) primary key,
InsertTime varchar(50) not null,
Note varchar(200) not null,
AlarmType varchar(20) not null,
Operator varchar(20) not null,
VarName varchar(20) not null
);
if exists(select * from sysobjects where name='ActualData')
drop table ActualData
go
create table ActualData (
Id int identity(1,1) primary key,
InsertTime varchar(50) not null,
Station1Temp varchar(20) not null,
Station1Humidity varchar(20) not null,
Station2Temp varchar(20) not null,
Station2Humidity varchar(20) not null,
Station3Temp varchar(20) not null,
Station3Humidity varchar(20) not null,
Station4Temp varchar(20) not null,
Station4Humidity varchar(20) not null,
Station5Temp varchar(20) not null,
Station5Humidity varchar(20) not null,
Station6Temp varchar(20) not null,
Station6Humidity varchar(20) not null,
);
视觉人机器视觉
- 粉丝: 7593
- 资源: 236
最新资源
- 7.(备用)180题自动计算结果(6不能用则用7).xls
- 机械设计饲料搅拌机sw18全套设计资料100%好用.zip
- DISC测试题目(详细版).doc
- DISC评分表格.xls
- Java项目:校园周边美食探索(java+SpringBoot+Mybaits+Vue+elementui+mysql)
- 明达集团招聘管理制度-终.doc
- 招聘与录用管理制度.doc
- 标准HR面试话术.doc
- 经理面试话术.doc
- 大学远程教育-计算机网络试卷题目.docx
- 技术人员面试话术.doc
- 电话邀约销售面试话术.doc
- hr电话邀约面试考察话术.doc
- 面试预约话术.doc
- python入门5个经典案例含代码示例.docx
- 基于FPGA实验板的多功能数字时钟-利用Quartus实现设计与仿真源码+课程设计报告
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈