Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to save data in the database("QSQLITE")?
Forum Updated to NodeBB v4.3 + New Features

How to save data in the database("QSQLITE")?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k 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.
  • P Offline
    P Offline
    pratik041
    wrote on last edited by
    #1

    I am using SQLite as database. I am able to connect to the database and i have also inserted data into the database but while running the application again i am not able to retrieve that information. So how can i make the information to last beyond the termination of the application ?

    Pratik Agrawal

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

      This is not how databases work. Data has been stored at the time a transaction has been committed. If it is not, there's something wrong with your code - which you may provide for further assistance.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pratik041
        wrote on last edited by
        #3

        [quote author="Lukas Geyer" date="1326110211"]This is not how databases work. Data has been stored at the time a transaction has been committed. If it is not, there's something wrong with your code - which you may provide for further assistance.[/quote]

        ok i will check my code if no solution i found i will post here.

        Pratik Agrawal

        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