Jump to content

Archived

This topic is now archived and is closed to further replies.

shams

how to get sum of one mysql table column?

Recommended Posts

hi,
i want to get the sum of the integers of one column of the mysql table, can any one post the code please, then i can put it in a php code, thanks in advanced for your help.

Share this post


Link to post
Share on other sites
SELECT SUM(field_name) AS mysum FROM tablexyz

Share this post


Link to post
Share on other sites
HI

Can you explan a little further please.

Do you want to count the numer of rows you have filled in a mysqltable ?

or?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.