I have a sql database with an unknown count of tables. How to find the number of tables in the database?
For example I try:
but it returns error "column not exists"
For example I try:
B4X:
dim count_tables as Cursor
count_tables= Main.sql1.ExecQuery("SELECT COUNT() FROM sqlite_master WHERE TYPE='table'")
count_tables.Position=0
Msgbox("Tables",count_tables.GetInt(0))
but it returns error "column not exists"