标签: sql-drop

MySQL:删除带有问号的列?

我正在尝试删除带有问号符号的列:

ALTER TABLE player DROP is_playing?;
Run Code Online (Sandbox Code Playgroud)

结果:

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 '?' at line 2
Run Code Online (Sandbox Code Playgroud)

你还知道其他扔掉它的方法吗?

谢谢

mysql sql-drop

1
推荐指数
1
解决办法
921
查看次数

您的SQL语法有错误; 查看与您的MySQL服务器版本对应的手册,以便在'-db'附近使用正确的语法

我正在尝试删除RDS MySQL实例中的数据库,我收到以下错误.有人可以帮我解决这个问题

  [ec2-user@ip-10-10-1-14 ~]$ mysql -h wda2d.cmkridjjwpjp.ap-southeast-2.rds.amazonaws.com -u happy-p
  Enter password:
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 6241
  Server version: 5.6.19-log MySQL Community Server (GPL)

  Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

  Oracle is a registered trademark of Oracle Corporation and/or its
  affiliates. Other names may be trademarks of their respective
  owners.

  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. …
Run Code Online (Sandbox Code Playgroud)

mysql sql mysql-error-1064 sql-drop

1
推荐指数
1
解决办法
9784
查看次数

如何在rails上的ruby中创建删除表的迁移

我想在我的rails应用程序中删除一个表,但我不能使用回滚,因为我很久以前创建了这个表,并且我有很多其他表创建以来.

如何将其命名为drop table迁移文件,是否有办法使用rails generate生成它?

ruby-on-rails sql-drop

0
推荐指数
1
解决办法
2151
查看次数

了解 DELETE 和 DROP 命令

我是计算机科学专业的学生。最近我正在尝试学习数据库。我找到了一个链接,描述了 DELETE 和 DROP 命令之间的区别。我理解它们之间的大部分区别与最重要的区别 - DELETE 仅删除 DROP 删除表/对象的数据。

但我无法理解一个区别 - DELETE 命令会触发 DML 触发器,而 DROP 不会触发任何 DML 触发器。该链接仅陈述了这一事实,没有任何解释。有人可以解释一下,以便我可以更了解它。

sql database oracle sql-delete sql-drop

0
推荐指数
1
解决办法
109
查看次数

MySQL删除表中的所有分区

如何从 MySQL 中的表中删除所有分区。我知道您可以使用 删除特定分区ALTER TABLE table_name DROP PARTITION p0, p1,但是有没有办法不列出每个分区名称?

mysql sql partition sql-drop

0
推荐指数
1
解决办法
5011
查看次数