Questions tagged «mysql-error-1050»

25
Mysql 1050错误“表已存在”实际上不存在
我要添加此表: CREATE TABLE contenttype ( contenttypeid INT UNSIGNED NOT NULL AUTO_INCREMENT, class VARBINARY(50) NOT NULL, packageid INT UNSIGNED NOT NULL, canplace ENUM('0','1') NOT NULL DEFAULT '0', cansearch ENUM('0','1') NOT NULL DEFAULT '0', cantag ENUM('0','1') DEFAULT '0', canattach ENUM('0','1') DEFAULT '0', isaggregator ENUM('0', '1') NOT NULL DEFAULT '0', PRIMARY KEY (contenttypeid), …

9
MySQL“如果不存在则创建表”->错误1050
使用命令: CREATE TABLE IF NOT EXISTS `test`.`t1` ( `col` VARCHAR(16) NOT NULL ) ENGINE=MEMORY; 在MySQL查询浏览器中运行两次会导致: 表't1'已经存在错误1050 我本以为创建表“ IF NOT EXISTS”不会引发错误。我是否缺少某些东西或这是一个错误?我正在运行5.1版。谢谢。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.