【问题标题】:How to make alter command take effect In MonetDB?如何使alter命令在MonetDB中生效?
【发布时间】:2019-08-07 06:52:57
【问题描述】:

我使用 mclient 连接 MonetDB 并输入此 sql:"alter table t1 rename to t2",然后我保持此 mclient 活动并使用 anthor mclient 连接同一个 MonetDB 数据库,但是当我输入此 sql 时:"select *from t2",MonetDB报错:"no such table "t2""。好像只有一个连接才能生效,那怎么才能让所有的连接都生效呢?

这是 Linux 操作系统,实际上是 Centos 7.5。 MonetDB 的版本是 2019 年 4 月。

在mclient A中,我输入这个sql:

alter table t1 rename to t2;

然后我保持mclient A活着,我用另一个mclient B连接同一个数据库,我输入这个sql:

select * from t2;

然后我得到一个错误:没有这样的表 t2。 重启这个数据库可以解决这个问题。

我希望输出的是t2的数据,但实际输出的是ERROR,没有t2这个表。

【问题讨论】:

    标签: sql ddl alter monetdb


    【解决方案1】:

    此错误已在 2019 年 8 月版本中修复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-28
      • 2016-10-28
      • 1970-01-01
      • 1970-01-01
      • 2019-03-16
      • 1970-01-01
      • 2021-11-21
      • 1970-01-01
      相关资源
      最近更新 更多