简体   繁体   English

如何合并两个Firebird数据库

[英]How to merge two Firebird databases

I need to merge two Firebird databases. 我需要合并两个Firebird数据库。 The first one contains data from 2014 to 2016 and 2018 to 2019. The second one from 2014 to 2017. 第一个包含2014年至2016年和2018年至2019年的数据。第二个包含2014年至2017年的数据。

I would like to have all data from 2012 to 2019 in the same database. 我希望将2012年至2019年的所有数据都存储在同一数据库中。

try use on external in the procedure 在程序中尝试在外部使用

for example: 例如:

create or alter procedure GET_ALL_DATA
 returns (
   BASE integer,
   ID integer,
   NAME varchar(250))
 as
 begin
   for execute statement 'select 1, id, name from dict_assortment'
    into base, id, name do
    suspend;
   for execute statement 'select 2, id, name from dict_assortment'
    on external 'C:\base2000\Db\db.fdb'
    into base, id, name do
    suspend;
 end

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM