Files
RecordAppInsights/mergeData.sql

8 lines
211 B
MySQL
Raw Normal View History

select 'Merging Stage into requests';
insert into requests select * from stage where not exists (select 1 from requests where requests.id=stage.id);
drop table stage;
select 'Vacuuming the DB';
vacuum;