Results 1 to 2 of 2

Thread: Unique key

  1. #1
    Join Date
    May 2013
    Posts
    33

    Unanswered: Unique key

    Hi, this is my table structure:

    Code:
    mysql> desc one
        -> ;
    +-------+---------+------+-----+---------+-------+
    | Field | Type    | Null | Key | Default | Extra |
    +-------+---------+------+-----+---------+-------+
    | id    | int(11) | NO   | PRI | NULL    |       |
    | empno | int(11) | NO   | UNI | NULL    |       |
    +-------+---------+------+-----+---------+-------+
    2 rows in set (0.00 sec)
    I want to remove unique key from the above table which is in the column EMPNO.

    How would i drop unique key from the table.

  2. #2
    Join Date
    Sep 2007
    Location
    Bangalore India
    Posts
    28
    Hi,

    you can use alter table one drop index empno

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •