andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:
-- Two original tables create table a ( id int(11) unsigned not null, account_no bigint(26) unsigned not null, unique key id_idx (id) ); create table b ( id int(11) unsigned not null, balance double not null, unique key id_idx (id) ); -- New table create table c ( id int(11) unsigned not null, account_no bigint(26) not null, balance float not null, unique key id_idx (id) ); insert into a values (1,1); insert into a values (2,2); insert into b values (1,100.0); insert into b values (2,200.0); -- Populate c with values from a and b insert into c ( id, account_no, balance) select a.id, a.account_no, b.balance from a, b where a.id=b.id; select * from c; +----+------------+---------+ | id | account_no | balance | +----+------------+---------+ | 1 | 1 | 100 | | 2 | 2 | 200 | +----+------------+---------+ 2 rows in set (0.00 sec)
Do you still consider advice to leave it as is? Andreasselect a.id, a.account_no, b.balance from a, b where a.id=b.id; select id, account_no, balance from c where id=X;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Verify database consistency after merge
by graff (Chancellor) on Oct 17, 2006 at 02:03 UTC | |
by djp (Hermit) on Oct 17, 2006 at 03:01 UTC | |
|
Re: Verify database consistency after merge
by astaines (Curate) on Oct 16, 2006 at 20:57 UTC | |
|
Re: Verify database consistency after merge
by tcf03 (Deacon) on Oct 17, 2006 at 03:33 UTC | |
|
Re: Verify database consistency after merge
by jeanluca (Deacon) on Oct 16, 2006 at 20:32 UTC | |
|
Re: Verify database consistency after merge
by bduggan (Pilgrim) on Oct 17, 2006 at 13:26 UTC | |
|
Re: Verify database consistency after merge
by nmerriweather (Friar) on Oct 17, 2006 at 15:34 UTC | |
by andreas1234567 (Vicar) on Oct 17, 2006 at 19:07 UTC | |
|
Re: Verify database consistency after merge
by arc_of_descent (Hermit) on Oct 17, 2006 at 17:44 UTC |