I would like to know the total number of rows for each table. And that for all tables at once. Is this possible with H2?
I’m thinking of a table:
|table name | row size |
At the moment I’m using the current version 1.3.170 (2012-11-30).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would need to use a user-defined function, for example:
This code doesn’t take into account the schema, and only works for unquoted table names.