aboutsummaryrefslogtreecommitdiff
path: root/createDB.sql
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-05 20:28:50 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-05 20:28:50 +0200
commita1ca8f1f4764b279456018690decd93135d4c699 (patch)
tree7992535ba262da1708ee2a51e17122180b709428 /createDB.sql
parent6e63028aec15f93bf82a0452b45a6b4dfec81f05 (diff)
parent40e937f75dee1e612710730b6d281a21131cc159 (diff)
Merge branch 'dev' of https://github.com/UnavailableDev/avans-whether-station-Qt into qt-dev
Diffstat (limited to 'createDB.sql')
-rw-r--r--createDB.sql9
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);