From a925114074687677ffb84f42b7edab11afd9e7e8 Mon Sep 17 00:00:00 2001 From: flykhan Date: Tue, 24 Oct 2023 16:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=A1=A8=E5=88=9B=E5=BB=BA=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql_base/createtables.sql | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/sql_base/createtables.sql b/sql_base/createtables.sql index e5b0787..ccb8912 100644 --- a/sql_base/createtables.sql +++ b/sql_base/createtables.sql @@ -1,5 +1,22 @@ -create table login_users (userid integer primary key, name varchar(50), password varchar(50)); - -create table temp_hum_info (thid integer primary key, temperature double, humidity double, th_date_time datetime); - -create table record_of_operations (operid integer primary key, oper_user_name varchar(50), operation_detail text, operation_time datetime); +-- 创建用户登录表 +create table if not exists login_users ( + userid integer primary key, + name varchar(50), + password varchar(50) +); +-- 创建温湿度信息表 +create table if not exists temp_hum_info ( + thid integer primary key, + temperature double, + humidity double, + th_date_time datetime +); +-- 创建用户操作记录表 +create table if not exists record_of_operations ( + operid integer primary key, + oper_user_name varchar(50), + operation_detail text, + operation_time datetime +); +-- 列举显示已经创建的表 +.tables \ No newline at end of file