錯誤碼: 1050 Table 'emp' already exists,empexists

來源:互聯網
上載者:User

錯誤碼: 1050 Table 'emp' already exists,empexists

1、錯誤描述

1 queries executed, 0 success, 1 errors, 0 warnings查詢:create table emp( id int(8) primary key not null, ename varchar(20) not null, eage int(3), esex varchar(2) )錯誤碼: 1050Table 'emp' already exists執行耗時   : 0 sec傳送時間   : 0 sec總耗時      : 0.001 sec

2、錯誤原因

     重複執行建立資料庫表SQL語句

CREATE TABLE emp(    id INT(8) PRIMARY KEY NOT NULL,    ename VARCHAR(20) NOT NULL,    eage INT(3),    esex VARCHAR(2)    );


3、解決辦法

(1)不要執行上述SQL

(2)如表有修改,可以先刪除表,然後執行上述SQL;或者利用SQL修改表

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關文章

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.