tags:

views:

163

answers:

2

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 with the sqlite_ prefix and AllDataTypes.

Has anyone done something like this? Is there a list of them?

Thanks in advance.

A: 

There is only one system table that is of any consequence.

select * from sqlite_master

but you may get some useful information from sqlite_sequence,

Sky Sanders
Yes, but I need to filter them all. I have to have the means to get all the non system tables.
sovanesyan
A: 

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 '?'
sergio