I am learning SQL using MS Access until I get SQL Server.
I am trying to create a table that includes time and date columns.
I receive the error: Syntax error in field definition.
Here is my code:
CREATE TABLE doughnut_rating s
(
location VARCHAR(50),
time DATETIME,
date DATE,
type CHAR(6),
rating VARCHAR(50)
comments VARCHAR(50)
);
How can I fix my code?
Thanks,
John
I am trying to create a table that includes time and date columns.
I receive the error: Syntax error in field definition.
Here is my code:
CREATE TABLE doughnut_rating s
(
location VARCHAR(50),
time DATETIME,
date DATE,
type CHAR(6),
rating VARCHAR(50)
comments VARCHAR(50)
);
How can I fix my code?
Thanks,
John
Comment