Error code: 1050 Table & #39; emp & #39; already exists, empexists

Source: Internet
Author: User

Error code: 1050 Table 'emp' already exists, empexists

1. Error description

1 queries executed, 0 success, 1 errors, 0 warnings query: create table emp (id int (8) primary key not null, ename varchar (20) not null, eage int (3), esex varchar (2) error code: 1050 Table 'emp' already exists execution time: 0 sec Transfer Time: 0 sec total time: 0.001 sec

2. Error cause

Execute the SQL statement repeatedly to create a database table

Create table emp (id INT (8) primary key not null, ename VARCHAR (20) not null, eage INT (3), esex VARCHAR (2 ));


3. Solution

(1) do not execute the preceding SQL

(2) If the table has been modified, you can delete the table and then execute the preceding SQL statement; or use the SQL statement to modify the table.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.