I think u cannot do automatically, since MySQL does not support table
trigger or view.  U can only get value C by select statement, otherwise u
need to update the column C by another processing.

Best regards,
Kenneth.

----- Original Message -----
From: "Kodrik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 4:33 AM
Subject: Re: Automatic Mathmatical Computation


> Yes, you can do:
>
> update whatever set C=A*B+3 where whatever
>
> On Wednesday 24 October 2001 07:11 pm, [EMAIL PROTECTED] wrote:
> > Hello,
> >
> > I am wondering if there is a way to make automatic computations into a
> > particular column, for instance:
> >
> > Table ONE has column's A, B and C.
> >
> > When I post data to A and B, can I have C automatically calculate A / B
and
> > post that answer onto column C?
> >
> > Again, I want this to happen automatically, I don't want to have to
issue a
> > SELECT statement for this procedure.
> >
> > Thanks for your help.
> >
> > David
> >
> >
> >
> > ---------------------------------------------------------------------
> > Before posting, please check:
> >    http://www.mysql.com/manual.php   (the manual)
> >    http://lists.mysql.com/           (the list archive)
> >
> > To request this thread, e-mail <[EMAIL PROTECTED]>
> > To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to