diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2022-09-29 14:46:12 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2022-09-29 14:46:12 +0200 |
commit | d56f01dec7bbd32f88df92479618348f12dcc2e8 (patch) | |
tree | 5f71bff971552b105c7b0819aeadb84aef979da8 | |
parent | f9f1e5bf0bd7e8b0ca0708fb63f4d2c56d47ef49 (diff) |
creating database build script
-rw-r--r-- | createDB.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/createDB.sql b/createDB.sql new file mode 100644 index 0000000..4c4c4d4 --- /dev/null +++ b/createDB.sql @@ -0,0 +1,9 @@ +CREATE SCHEMA `WSdb`; +CREATE TABLE `DAB1Pract1`.`tblMain` ( + `ID` INT GENERATED ALWAYS AS (), + `temperature` DECIMAL(5,2) NULL, + `humidity` DECIMAL(5,2) NULL, + `pressure` DECIMAL(5,2) NULL, + `time` DATETIME NULL, + PRIMARY KEY (`ID`), + UNIQUE INDEX `ID_UNIQUE` (`ID` ASC) VISIBLE); |