针对库中的所有表生成select count(*)对应的SQL语句
【当题目要求输出文字时,使用select “ ”和||连接符】
【SQLite 系统表 sqlite_master 中可以获得所有表的索引,其中 name 是所有表的名字,对于自己创建的表而言,字段 type 永远是 ‘table’,】
select "select count(*) from "||name||";"
as cnts
from sqlite_master
where type='table'
针对库中的所有表生成select count(*)对应的SQL语句
【当题目要求输出文字时,使用select “ ”和||连接符】
【SQLite 系统表 sqlite_master 中可以获得所有表的索引,其中 name 是所有表的名字,对于自己创建的表而言,字段 type 永远是 ‘table’,】
select "select count(*) from "||name||";"
as cnts
from sqlite_master
where type='table'