List of system tables in SQLite

前端 未结 3 1194
后悔当初
后悔当初 2020-12-14 21:59

I am trying to filter all the tables in a SQLite database based on if they are system tables or user generated ones.

So far I\'ve found out that they are the ones wi

3条回答
  •  北海茫月
    2020-12-14 22:37

    I think it can be filtered by name (as you already done)

    I've used script

    SELECT 
      name, type
    FROM 
      sqlite_master
    WHERE 
      type in ('table', 'view')
    AND 
      name not like 'sqlite?_%' escape '?'
    

提交回复
热议问题