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

  • Home
  • SEARCH
  • 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 4579712
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:40:50+00:00 2026-05-21T20:40:50+00:00

I am using a MySQL DB to manage employees. I maintain the DB in

  • 0

I am using a MySQL DB to manage employees. I maintain the DB in PHPMyAdmin. I want to add 70 new fields into a table by using SQL. I thought this would work. Can you tell me why it doesn’t

CREATE TABLE IF NOT EXISTS `dist` (

  `e_employee1` varchar(255) NOT NULL,
  `e_name1` varchar(255) NOT NULL,
  `e_title1` varchar(255) NOT NULL,
  `e_phone1` int(11) NOT NULL,
  `e_ext1` int(11) NOT NULL,
  `e_phone21` int(11) NOT NULL,
  `e_email1` varchar(255) NOT NULL,
  `e_employee2` varchar(255) NOT NULL,
  `e_name2` varchar(255) NOT NULL,
  `e_title2` varchar(255) NOT NULL,
  `e_phone2` int(11) NOT NULL,
  `e_ext2` int(11) NOT NULL,
  `e_phone22` int(11) NOT NULL,
  `e_email12` varchar(255) NOT NULL,
  `e_employee3` varchar(255) NOT NULL,
  `e_name3` varchar(255) NOT NULL,
  `e_title3` varchar(255) NOT NULL,
  `e_phone3` int(11) NOT NULL,
  `e_ext3` int(11) NOT NULL,
  `e_phone23` int(11) NOT NULL,
  `e_email3` varchar(255) NOT NULL,
  `e_employee4` varchar(255) NOT NULL,
  `e_name4` varchar(255) NOT NULL,
  `e_title4` varchar(255) NOT NULL,
  `e_phone4` int(11) NOT NULL,
  `e_ext4` int(11) NOT NULL,
  `e_phone24` int(11) NOT NULL,
  `e_email4` varchar(255) NOT NULL,
  `e_employee5` varchar(255) NOT NULL,
  `e_name5` varchar(255) NOT NULL,
  `e_title5` varchar(255) NOT NULL,
  `e_phone5` int(11) NOT NULL,
  `e_ext5` int(11) NOT NULL,
  `e_phone25` int(11) NOT NULL,
  `e_email5` varchar(255) NOT NULL,
  `e_employee6` varchar(255) NOT NULL,
  `e_name6` varchar(255) NOT NULL,
  `e_title6` varchar(255) NOT NULL,
  `e_phone6` int(11) NOT NULL,
  `e_ext6` int(11) NOT NULL,
  `e_phone26` int(11) NOT NULL,
  `e_email6` varchar(255) NOT NULL,
  `e_employee7` varchar(255) NOT NULL,
  `e_name7` varchar(255) NOT NULL,
  `e_title7` varchar(255) NOT NULL,
  `e_phone7` int(11) NOT NULL,
  `e_ext7` int(11) NOT NULL,
  `e_phone27` int(11) NOT NULL,
  `e_email7` varchar(255) NOT NULL,
  `e_employee8` varchar(255) NOT NULL,
  `e_name8` varchar(255) NOT NULL,
  `e_title8` varchar(255) NOT NULL,
  `e_phone8` int(11) NOT NULL,
  `e_ext8` int(11) NOT NULL,
  `e_phone28` int(11) NOT NULL,
  `e_email8` varchar(255) NOT NULL,
  `e_employee9` varchar(255) NOT NULL,
  `e_name9` varchar(255) NOT NULL,
  `e_title9` varchar(255) NOT NULL,
  `e_phone9` int(11) NOT NULL,
  `e_ext9` int(11) NOT NULL,
  `e_phone29` int(11) NOT NULL,
  `e_email9` varchar(255) NOT NULL,
  `e_employee10` varchar(255) NOT NULL,
  `e_name10` varchar(255) NOT NULL,
  `e_title10` varchar(255) NOT NULL,
  `e_phone10` int(11) NOT NULL,
  `e_ext10` int(11) NOT NULL,
  `e_phone210` int(11) NOT NULL,
  `e_email10` varchar(255) NOT NULL,


  KEY `id` (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
  • 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-05-21T20:40:51+00:00Added an answer on May 21, 2026 at 8:40 pm

    You are using CREATE TABLE. You should be using ALTER TABLE if you want to add fields. PHPMyAdmin should be showing you an error indicating that the table already exists.

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

Sidebar

Related Questions

I have a table in MySql that I manage using PhpMyAdmin. Currently it's sitting
I have a MySQL database (currently using phpmyadmin to manage) that I would like
Currently using MySQL version 5.1.6 This is my first real world build and so
I can manage to get values from mysql using select box in php, but
I am using JNDI with Tomcat6 to manage Mysql connections, my Catalina/domain.com/ROOT.xml has: <Resource
I am playing around with Tomcat authentication using Mysql. To facilitate this I'm trying
I have been using a php sql system to manage images on my website.
Is it possible using just SQL and MySQL to get the OUTPUT below? SAMPLE
We are using Java/Spring/Ibatis/MySql. Is there a way with these technologies to manage read-only
I'm building an online store using PHP and MySQL and I ran into a

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.