I am creating this table into a MySql database:
CREATE TABLE actors (
id BigInt UNSIGNED NOT NULL AUTO_INCREMENT,
sample_id VarChar(128) NOT NULL,
`role` Char(2) NOT NULL,
wiews VarChar(16),
pid VarChar(16),
`name` VarChar(128),
address VarChar(128),
country Char(3),
PRIMARY KEY (
id
)
) ;
ALTER TABLE actors COMMENT = '';
When I perform the above DDL statement I get the following 2 error messages:
Name "role" is a reserved keyword. You must use another name.
Name "name" is a reserved keyword. You must use another name.
Using the database default storage engine ("InnoDB").
So it means that using MySql I can't use the field-name role and name because are keyword reserved to MySql?
The problem is that another person give me the specific to create these tables (included the name of field) because I think that an application expects this field names.
So do you confirm that I can't create field with these 2 names?