I have a column in one of my tables which has been assigned an index. It is preventing me from having two of the same ID number.
I am assuming the reason it is not letting me have two entries of the same ID is because it has been set to be Unique.
I am wondering how do I remove this rule so that I can insert the same ID number several times.
Cheers
We can remove PRIMARY KEY constraint from a column of an existing table by using DROP keyword along with ALTER TABLE statement.
Try the following command: show index from `my_answers`; then inspect the key name of your index and drop it by its name.
Indexes on variable-width columns of NDB tables are dropped online; that is, without any table copying. The table is not locked against access from other NDB Cluster API nodes, although it is locked against other operations on the same API node for the duration of the operation.
below the list of your "columns" in the table structure you have a small table called "Indexes". Every row is an index. Find there your unique index and drop it using "drop" symbol (red X). If you have it on more than one column then drop it and recreate without the column you don't want unique
Follow this steps:-
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With