From 329e92c825811633e3302905ba9d08662fc4cc31 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Tue, 18 Jun 2024 20:45:34 +0800 Subject: [PATCH] Update init.sql --- init.sql | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/init.sql b/init.sql index 3044cb2..80f4907 100644 --- a/init.sql +++ b/init.sql @@ -24,7 +24,7 @@ create table ); -create table +CREATE TABLE naturebook( number VARCHAR(255) primary key, classnumber VARCHAR(255), @@ -36,6 +36,15 @@ create table ); +select + * +from + naturebook; + + +desc naturebook; + + insert into naturebook values @@ -176,6 +185,24 @@ values ); +alter table + naturebook +add + column current VARCHAR(255); + + +alter table + naturebook +add + column dateon VARCHAR(255); + + +alter table + naturebook +add + column dateoff VARCHAR(255); + + create table sciencebook( number VARCHAR(255) primary key, @@ -184,5 +211,8 @@ create table classname VARCHAR(255), price VARCHAR(255), state VARCHAR(255), - total VARCHAR(255) + total VARCHAR(255), + current VARCHAR(255), + dateon VARCHAR(255), + dateoff VARCHAR(255) ); \ No newline at end of file