I would like to create a table with GENERATED as column in MySQL version 5.7.16. When I try below query it is giving error:
create table madhu (RECORDID VARCHAR(255) NOT NULL, GENERATED INTEGER NOT NULL);
Below is the error:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GENERATED INTEGER NOT NULL)' at line 1 0.000 sec
It looks GENERATED is reserved key word. Is there away to have GENERATED as column? If I change the column it works anyway.