I know how to use sum sql, but i dont know how to display it result in jsp page.
For example, my table database like this:
TableName: user
|userid|name|salary|
|1000 |john|500 |
|1001 |joe |600 |
|1002 |jim |700 |
so my sql statement like this, SELECT SUM(salary) FROM user WHERE userid=1000,1001. So the result
is 1100.
So the problem is, how i can display the result in jsp page..Someone help me please..
How to use sum sql and display it in jsp page
Page 1 of 15 Replies - 1014 Views - Last Post: 23 July 2011 - 09:24 PM
Replies To: How to use sum sql and display it in jsp page
#2
Re: How to use sum sql and display it in jsp page
Posted 10 July 2011 - 04:07 AM
I assume your SQL query would fail (or not output what you expect), the WHERE clause is odd.
#3
Re: How to use sum sql and display it in jsp page
Posted 10 July 2011 - 04:43 AM
Moved to JavaEE
#4
Re: How to use sum sql and display it in jsp page
Posted 10 July 2011 - 11:23 PM
#5
Re: How to use sum sql and display it in jsp page
Posted 19 July 2011 - 08:14 PM
#6
Re: How to use sum sql and display it in jsp page
Posted 23 July 2011 - 09:24 PM
Its work. thanks shadowBean
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote






|