Skip to content

Inform: not handle case Error : BLOB/TEXT column {{columnname}} used in key specification without a key length #13

Description

@baszealot13

for ex:
this command below is solution after diff.
ALTER TABLE table_name ADD INDEX matchID USING BTREE (column_text);
but i get error "BLOB/TEXT column {{columnname}} used in key specification without a key length" because that column defined "TEXT" type.

must be like command below
ALTER TABLE table_name ADD INDEX matchID USING BTREE (column_text(20));

How should I do?, please suggest.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions