I found a mistake. You did not specify the length of the attribute name . Use varchar ( length ) instead of TEXT , where length is a number.
Thus, your code will be if you want the name to not exceed 50 letters:
Company CREATE TABLE (id INT UNCERTAIN PRIMARY KEY NOT ZERO AUTO_INCRIEMENT,
name varchar (50) UNIQUE NOT NULL,
INDEX (name (20))
);
You can specify any value in varchar () , but it must be an integer.
Prateek agrawal
source share