Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Information_schema on sqlite
Forum Updated to NodeBB v4.3 + New Features

Information_schema on sqlite

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 2 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tangent
    wrote on last edited by
    #1

    Hello.
    I know how to get table names from SQLite database:
    @QSqlQuery query("SELECT name FROM sqlite_master WHERE type = 'table'");@

    Can you tell me, how to make a query for: column_name, data_type, is_nullable, ... ?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      @
      QSqlQuery query("PRAGMA table_info(" + tableName +")");
      @

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved