Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9227637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:07:44+00:00 2026-06-18T05:07:44+00:00

I have tried making two database tables wp_marketing and wp_email . I have a

  • 0

I have tried making two database tables wp_marketing and wp_email. I have a problem of redundant indexes in these tables. I have added the SHOW CREATE TABLE tablename;.

CREATE TABLE `cur_emailcontent` (
`title` varchar(100) NOT NULL,
`message` varchar(1000) NOT NULL,
`mail_from` varchar(100) NOT NULL,
`subject` varchar(100) NOT NULL,
KEY `title` (`title`),
CONSTRAINT `cur_emailcontent_ibfk_1` FOREIGN KEY (`title`) REFERENCES `cur_marketing` (`title`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1

Initially i made title column as primary, then I changed the Index Type of the same to INDEX. Now I can use any other column to be as PRIMARY KEY but I cannot delete this index using PHPMyAdmin but was unable to do so.I got to know that these types of indexes are called redundant indexes.

Now I don’t have any option other than creating the table(s) again. Is there any solution to such indexes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:07:45+00:00Added an answer on June 18, 2026 at 5:07 am

    If querying cur_emailcontent table based on title is very unlikely and don’t want it to be a foreign key either; also to have mail_from as new primary key just execute:

    ALTER TABLE cur_emailcontent DROP FOREIGN KEY cur_emailcontent_ibfk_1,
    DROP KEY title,
    ADD PRIMARY KEY (mail_from);
    

    MySQL Alter Syntax

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables in my database table: products table: companies +-----------+------------+ +------+------------+ |
I have tried making every div 75px and the table within the div but
I have tried making a fiddle for this, but it's been too difficult to
I am making a GUI in OpenGL (more specifically lwjgl). I have tried hard
I'm having trouble making python print out texts properly aligned. I have tried everything
I have tried searching over the internet about this problem but not able to
I have two identical tables in two different databases with the same data but
I've tried two different methods of reusing code. I have a solution full of
I am making a site with two Youtube videos. These videos use the raw
I have two tables. Table1->Payment AdmissionNum(PK) | StudName | Fees | 1 sagar 5000

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.