homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderator: open

Databases Forum

Calculated Field MYSQL
claculated field in mysql database

5+ Year Member

Msg#: 4346702 posted 3:19 pm on Aug 2, 2011 (gmt 0)

Is it possible to put a calculation as a field in a mysql database. For example if I wanted column3 to be the sum of the values of column 1 and column 2, is that possible?

Is there a syntax for doing that kind of thing in a mysql record?



WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4346702 posted 1:09 pm on Aug 18, 2011 (gmt 0)

Not that I am aware. But the bigger question is why would you want to do such a thing? It is redundant data since it can be calculated at any given time during data retrieval.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved