Re: auto fill field with value from another
| From: | Paul DuBois | Date: | Wed, 08 Aug 2001 00:22:52 +0000 |
| Subject: | Re: auto fill field with value from another | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11125@lists.php.net to get a copy of this message | ||
At 3:38 PM -0400 8/3/01, bill wrote:
Is there a way to have a field in a MySQL table automatically be filled whenever that row is created or updated with the value of another field in the same table? Is there a way to have it filled with a calculation based on another field?No. The MySQL manual says default values must be constants: http://www.mysql.com/doc/C/R/CREATE_TABLE.html
thanks, bill hollett-- Paul DuBois, paul@snake.net