I am new at SQL and am having a little of trouble
This is my code
CREATE TABLE dataType(
Charater CHAR(250),
VariaChar VARCHAR(250),
STRING TEXT,
interger INT(50),
Floating FLOAT(50, 3),
fractions DECIMAL(50, 3),
today DATETIME("2018-10-07 12:55:20"),
watch TIME("12:55:20"),
centry YEAR(2018)
);
Basically, I am trying to make a table that has three type of text data, number data, and date data. The problem is when I run the code I get this error:
Error SQL query:
CREATE TABLE dataType(
Charater CHAR(250),
VariaChar VARCHAR(250),
STRING TEXT,
interger INT(50),
Floating FLOAT(50, 3),
fractions DECIMAL(50, 3),
today DATETIME("2018-10-07 12:55:20"),
watch TIME("12:55:20"),
centry YEAR(2018) )
MySQL said:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"2018-10-07 12:55:20"),
watch TIME("12:55:20"),
centry YEAR(2018)
)' at line 8*
I do not know what may be causing this problem. Thank you for thanking your time to try to assist me even if this has an obvious solution.