I’m trying to create an Alter command to create an unique_index on the first 8000 characters. I’m not able to figure out how to add the 8000 part. Any help would be appreciated. Thanks!
ALTER TABLE nextractor.tblhtml
ADD UNIQUE INDEX uniqueindex_InnerHTML (InnerHtml);
According to the MySQL docs, you need something like this:
This is the relevant grammar:
and