/[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

Contents of /trunk/sql/zz_archive_burned_copy_fix.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 272 - (show annotations)
Tue Dec 13 19:34:09 2005 UTC (18 years, 4 months ago) by dpavlin
File size: 356 byte(s)
example how to manipulate with complex data

1 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

  ViewVC Help
Powered by ViewVC 1.1.26