错误代码: 1050 Table 'emp' already exists
来源:互联网 发布:轩辕剑昊天塔进阶数据 编辑:程序博客网 时间:2024/05/29 19:20
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修改表
1 0
- 错误代码: 1050 Table 'emp' already exists
- 1050, "Table 'django_content_type' already exists"
- Hbase Table already exists
- Hbase Table already exists:
- magento -- 解决magento错误:ERROR: Base table or view already exists: 1050 Table ... already exists
- Base table or view already exists: 1050 Table 'catalog_product_entity_group_price' already exists
- Laravel Base table or view already exists: 1050 Table 'users' already exists
- SLT logging table already exists
- Hbase Table already exists问题
- table already exists (code 1)
- ERROR 1050 (42S01): Table 'crmdb/#sql-ib269' already exists
- django.db.utils.OperationalError: (1050, "Table 'devtypeinfo' already exists
- mysql ERROR 1050 (42S01): Table already exists
- ERROR 1050 (42S01): Table 'mauss/#sql-ib367' already exists
- django.db.utils.OperationalError: (1050, "Table 'devtypeinfo' already exists
- magento -- magento错误:SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'core_resource' already exists
- Create a table unless it already exists
- mySQL Table 'A.bill' already exists
- 置换群
- 【BLE】CC2541之修改广播时间
- MySQL 使用存储过程实现留存率
- Oracle或者PostgreSQL的row_number over 排名语法
- 两种重载运算符
- 错误代码: 1050 Table 'emp' already exists
- Lr11破解方法
- session的生命周期
- JavaScript(内置对象)
- Sublime Text 无法使用Package Control的解决方法 以及 常用的插件安装过程
- Android Retrofit框架的使用和个人见解
- IOS 控件 TextField设置大全
- JNI编程
- 出现MBProgressHUD.o文件的错误