mysql5.5怎么删除字段_Linux 上 Mysql5.5 只能新建表中的字段不能删除表,权限root...
該樓層疑似違規(guī)已被系統(tǒng)折疊?隱藏此樓查看此樓
mysql> describe wef_wall_content;
+------------+--------------+------+-----+-------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+-------------------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| wid | varchar(10) | YES | | NULL | |
| wxid | varchar(40) | YES | | NULL | |
| content | varchar(500) | YES | | NULL | |
| check | int(11) | YES | | 0 | |
| time | timestamp | YES | | CURRENT_TIMESTAMP | |
| name | varchar(30) | NO | | NULL | |
| ischeck | int(11) | YES | | NULL | |
| CompanyID | bigint(20) | YES | | NULL | |
| CreateTime | varchar(19) | YES | | NULL | |
+------------+--------------+------+-----+-------------------+----------------+
10 rows in set (0.00 sec)
mysql> alter table wef_wall_content drop column check;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near *check * at line 1
mysql> alter table "wef_wall_content" drop column check;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near *"wef_ wall_content" drop column check* at line 1
mysql> alter table *wef_wall_content* drop column check;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near **wef_ wall_content* drop column check* at line 1
mysql> alter table *wef_wall_content* drop column check int(11);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near **wef_ wall_content* drop column check int(11)* at line 1
mysql> alter table *wef_wall_content* drop column "check" int(11);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near **wef_ wall_content* drop column "check" int(11)* at line 1
各種都試過了,求大神解答幫助!!
總結(jié)
以上是生活随笔為你收集整理的mysql5.5怎么删除字段_Linux 上 Mysql5.5 只能新建表中的字段不能删除表,权限root...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 软件工程学习进度表
- 下一篇: mysql 双从性能_MySQL双主一致