Added MySQL functionality
This commit is contained in:
1
resources/sql/CountAllFieldsTask.sql
Normal file
1
resources/sql/CountAllFieldsTask.sql
Normal file
@@ -0,0 +1 @@
|
||||
SELECT COUNT(*) AS total FROM Task
|
||||
1
resources/sql/CountAllFieldsWorker.sql
Normal file
1
resources/sql/CountAllFieldsWorker.sql
Normal file
@@ -0,0 +1 @@
|
||||
SELECT COUNT(*) AS total FROM Worker
|
||||
1
resources/sql/SelectAllTask.sql
Normal file
1
resources/sql/SelectAllTask.sql
Normal file
@@ -0,0 +1 @@
|
||||
SELECT * FROM Task
|
||||
1
resources/sql/SelectAllWorker.sql
Normal file
1
resources/sql/SelectAllWorker.sql
Normal file
@@ -0,0 +1 @@
|
||||
SELECT * FROM Worker
|
||||
1
resources/sql/SelectTaskById.sql
Normal file
1
resources/sql/SelectTaskById.sql
Normal file
@@ -0,0 +1 @@
|
||||
SELECT * FROM Task WHERE taskid = ? LIMIT 1
|
||||
1
resources/sql/SelectWorkerById.sql
Normal file
1
resources/sql/SelectWorkerById.sql
Normal file
@@ -0,0 +1 @@
|
||||
SELECT * FROM Worker WHERE workerid = ? LIMIT 1
|
||||
1
resources/sql/UpdateWorkerTable.sql
Normal file
1
resources/sql/UpdateWorkerTable.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE Worker SET workerid = ?, name = ? WHERE workerid = ?
|
||||
@@ -4,5 +4,5 @@ CREATE TABLE Task (
|
||||
name VARCHAR(255) NOT NULL,
|
||||
description TEXT,
|
||||
workerid INT,
|
||||
taskstate INT
|
||||
taskstate BIT
|
||||
);
|
||||
Reference in New Issue
Block a user