我使用 monetdb,我有两个数据库“mydb”和“test”。
我想从“mydb”中获取一组值到“test”中。
我的代码:
insert into test.result
select sum(chargfeeprepaid) from mydb.data where callingpartyno = 628388881507
union
select sum(chargefeeprepaid) from mydb.sms where callingpartyno = 628388881507;
这在 MySQL 中运行良好......但在 Monetdb 中我得到错误:插入到:没有这样的方案“测试”。
我在哪里出错了,在 monetdb 中执行此操作的正确语法是什么?
问候赛琳