• Post Reply Bookmark Topic Watch Topic
  • New Topic

count total number of records from a table

 
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>;
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!