/[BackupPC]/trunk/sql/zz_archive_burned_copy_fix.sql
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/sql/zz_archive_burned_copy_fix.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 358 - (hide annotations)
Thu Apr 27 10:01:56 2006 UTC (18 years, 2 months ago) by dpavlin
File size: 562 byte(s)
added archive_burned correction (commented)

1 dpavlin 272 begin;
2    
3     select * from archive_burned order by archive_id,part,copy;
4    
5     select * into a from archive_burned where archive_id in (select archive_id from archive_burned group by archive_id having sum(copy) < 2) ;
6    
7     update a set copy = 2 ;
8    
9     insert into archive_burned select * from a;
10    
11     select * from archive_burned order by archive_id,part,copy;
12    
13     drop table a ;
14    
15 dpavlin 358 -- alternative
16     -- insert into archive_burned select archive_id,date,part,2,iso_size from archive_burned where archive_id in (select archive_id from archive_burned group by archive_id having count(*) = 1);
17    

  ViewVC Help
Powered by ViewVC 1.1.26