add a column to a table via PHP
| From: | Martin E. Koss | Date: | Tue, 13 Mar 2001 18:21:51 +0000 |
| Subject: | add a column to a table via PHP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7415@lists.php.net to get a copy of this message | ||
Hi,
I'm probably being a bit lazy asking what I should be able to figure out,
but here goes anyway:
What I want to do, in response to certain other actions having taken place,
is add a column to a mySQL database (FocusShop) table (Prices) and set the
default value of that column and update all existing rows in that table to
the same value for that new column.
Has anyone got the correct way to do this?
Thanks,
Martin.