Results 1 to 5 of 5

Thread: How to list all table containing SQlite database

  1. #1
    Join Date
    Feb 2009
    Posts
    62

    How to list all table containing SQlite database

    Hello friends,

    I had created a project in Asp.net and everything is working fine expect listing of all table which are in my database, as per my project requirements i have to list all tables containing SQlite database. I had searched a lot over internet but can't get any solution. Can anyone help me out with this issue ?

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    List all table containing SQlite database

    As per my knowledge if you are using sqlite3 and if you want to get list of all tables then in command-prompt you need to type ".tables" or else to can also use ".schema" to see a complete database including all tables. If you want you can also use LIKE pattern which will restrict the tables for display

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    How to list all table containing SQlite database

    If you are running the sqlite3 command-line access program you can type ".tables" to get a list of all tables. Or you can type ".schema" to see the complete database schema including all tables and indices. Either of these commands can be followed by a LIKE pattern that will restrict the tables that are displayed.

  4. #4
    Join Date
    Aug 2008
    Posts
    90

    Re: How to list all table containing SQlite database

    I am also facing similar issue where i need to display tables in SQLite database by using some programming language like c or C++ or any scripting language using Ruby/Perl/Python bindings please provide me any code for it. Thanks in Advance.

  5. #5
    Join Date
    Dec 2008
    Posts
    161

    How to list all table containing SQlite database

    If you want to get access to table then you can do it by using SELECT table name "SQLITE_MASTER" and for your information SQLite database has an SQLITE_MASTER table.If you want to create SQLITE_MASTER then you can create it by using the below code

    Code:
    CREATE TABLE sqlite_master (
      type1 TEXT,
      name1 TEXT,
      tbl_name1 TEXT,
      rootpage1 INTEGER,
      sql1 TEXT
    );

Similar Threads

  1. Load SQLite database from remote SQL Server
    By Kieran Blenkarne in forum Software Development
    Replies: 3
    Last Post: 21-11-2009, 11:12 AM
  2. Scan a directory or table in database
    By KADIN in forum Software Development
    Replies: 4
    Last Post: 03-11-2009, 07:03 PM
  3. Populating sqlite database on iphone
    By tecHAMMER in forum Software Development
    Replies: 3
    Last Post: 01-10-2009, 10:48 AM
  4. Check if database or table exists
    By Xan in forum Software Development
    Replies: 2
    Last Post: 29-05-2009, 04:53 PM
  5. Creating xml File from database table in VB.Net
    By Jateen in forum Software Development
    Replies: 2
    Last Post: 29-12-2008, 06:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,121,704.43831 seconds with 16 queries