Re: [pear-webmaster] [PEAR-BUG] Bug #1451 [Asn]: Statistics broken links... and more on the subject
| From: | Daniel Convissor | Date: | Tue, 27 Jul 2004 06:35:11 +0000 |
| Subject: | Re: [pear-webmaster] [PEAR-BUG] Bug #1451 [Asn]: Statistics broken links... and more on the subject | ||
| References: | 1 2 3 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-2868@lists.php.net to get a copy of this message | ||
On Tue, Jul 27, 2004 at 08:12:44AM +0200, Martin Jansen wrote:
>
> I don't think this will suffice, because the update statement a few
> lines below must also be adjusted. Or am I missing something?
No and yes.
The insert MUST be done when the table is updated. The update can be
changed after. But, feel free to change it for me.
Upon further thought, guess that in order to avoid problems of the script
and table being out of synch, it'd be best to alter the insert statement
in three steps. First, add the existing column names like this
vvvvvvvvvvvvvvvvv
INSERT INTO tbl (col1, col2, etc) VALUES...
Then alter the table. FINALLY, then add the new column to the insert
statement.
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409