INSERT INTO c ( SELECT tok, sum(count) FROM ( SELECT tok, count FROM a UNION ALL SELECT tok, count FROM b ) GROUP BY tok )
--
flounder
In reply to Re: OT: MySQL combine 2 tables data when Perl 'fails'
by flounder99
in thread OT: MySQL combine 2 tables data when Perl 'fails'
by tachyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |