• Post Reply Bookmark Topic Watch Topic
  • New Topic

count total number of records from a table  RSS feed

 
Ahmed Shaikh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using MySql in my application with jsp servlet.
I want to count total number of records which is available in a records ,so plz tell me how to do it.

EX:- i want to find total number of jobs for a given task in a job_task table.

plz tell he how to do it.

Thanx in advance ...
 
vicky saxena
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope this query will help you
select count(*) from job_task group by task having task = <task id>;
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!