Hello All,

I am using mysql on Linux - RedHat 7.1.  
The basic stuff is simple, cool, too.

I am a newbie, so forgive me if this is too simple a question.

Is there a mechanism available somewhere in doing an "automated" update of a
field.

example.

team is a table.

wins, losses, pct are fields of team table.

I want to enter wins and/or losses and have pct be automatically updated.

where pct is wins/(wins + losses)

or do I have to write a script (not lazy, just wanted to know if something
was available)

I appreciate any advice or direction.

thanks,

Lamar


---------------------------------------------------------------------
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