count the number of records - stored procedure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ozchadl
    New Member
    • Apr 2010
    • 26

    #1

    count the number of records - stored procedure

    I have a table called 'Animals' in a mysql database.
    The columns / fields are:
    'name'
    'animal'
    'year born'

    I am having problems creating a stored procedure called 'animalscount_s p'.

    The stored procedure is meant to count the number of records in the 'Animals' table

    Thanks for your help
  • zorgi
    Recognized Expert Contributor
    • Mar 2008
    • 431

    #2
    Originally posted by ozchadl
    I have a table called 'Animals' in a mysql database.
    The columns / fields are:
    'name'
    'animal'
    'year born'

    I am having problems creating a stored procedure called 'animalscount_s p'.

    The stored procedure is meant to count the number of records in the 'Animals' table

    Thanks for your help
    Have a look at COUNT

    Comment

    Working...