![]() |
| |||
| You will want to alias the result so you can display it: SELECT value1, value2, SUM(value1, value2) AS totalvalue FROM yourtable Sample output: ============|===========|================== value1 |value2 |totalvalue ============|===========|================== 5 |6 |11 10 |2 |12 4 |1 |5 9 |302 |311 =========================================== 4 rows returned =========================================== |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Update MYSQL database table based on mysql query array? | blackfox | PHP | 2 | 03-30-2007 02:11 AM |
| how to connect mysql using php 5?mysql is not activated by default...so error message is shown....what to do? | Jason M | PHP | 2 | 03-15-2007 06:25 PM |
| MySQL columns and an upper limit.? | kreak | PHP | 2 | 01-15-2007 05:22 PM |
| MySQL & MySQL Server Removal Help Needed Please? I feel so dumb to be this damn smart!? | blackfox | PHP | 1 | 11-26-2006 06:27 PM |
| Zulu Pad "PHP MYSQL program exactly like ZuluPad that you can put up on a web server and sync to MYSQL? | baggiho | PHP | 1 | 10-10-2006 07:24 AM |