Find number of tables in Snowflake

Query below returns total number of tables in current database.


select count(*) as tables
from information_schema.tables 
where table_type = 'BASE TABLE';   


  • tables - number of tables in a database


Query returns just one row.

Sample results

Those results show that there are 87 tables in SNOWFLAKE_SAMPLE_DATA database.

Comments are only visible when the visitor has consented to statistics cookies. To see and add comments please accept statistics cookies.
There are no comments. Click here to write the first comment.