I am trying trying to execute my query in MSSQL but it gives me an error
CREATE TABLE users (
id INTEGER PRIMARY KEY,
username VARCHAR(50) NOT NULL,
password VARCHAR(250) NOT NULL,
email VARCHAR(80) NOT NULL,
authKey VARCHAR(250) NOT NULL,
accessToken VARCHAR(250) NOT NULL,
activate TINYINT(1) NOT NULL,
role INTEGER NOT NULL,
);
Mens. 2716, Level 16, State 1, Line 1 Column, parameter, or variable #7: A column width cannot be specified in the tinyint data type.
To consider:
Check the comment in the code:
More information: https://docs.microsoft.com/es-es/sql/t-sql/data-types/int-bigint-smallint-and-tinyint-transact-sql