Raised This Month: $ Target: $400
 0% 

Calculate Sql Tabels


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 05-15-2007 , 16:53   Re: Calculate Sql Tabels
Reply With Quote #2

Code:
COUNT(*)       Returns the number of selected rows
SUM(column)       Returns the total sum of a column
So your query would be..

Code:
dbi_query(dbc,"SELECT 1,2,SUM(1),SUM(2),COUNT(*) FROM zbktb")
pRED* is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode