Results 1 to 2 of 2

Thread: Problem regarding SQLITE commands

  1. #1
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Problem regarding SQLITE commands

    Hi,
    I am using QT4.4.0 and SQLITE as database. I am facing two problems regarding with SQLITE command.
    1) I need to change the column name it means I want to rename the column name of a table.
    2) If I delete some 100 rows from the table then they are deleting but the memory allocated to those row are not getting free , I mean the space allocated to those rows should be get free.
    So Please suggest or help me to solve these problems.

    With regards,
    Sudheer

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem regarding SQLITE commands

    What memory doesn't get freed? If you mean the database itself then this is quite normal, moving all data after each row delete is too expensive and databases tend to leave it for some undefined moment in future when someone tells them to do that (like using the VACUUM command). As for the first problem simply execute a proper ALTER statement.

Similar Threads

  1. Problem with A SQLite Query
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2008, 11:15
  2. SQLITE QTableView scrollTo problem
    By vogeljh in forum Newbie
    Replies: 7
    Last Post: 16th April 2008, 19:45
  3. SQLite Problem
    By natbobc in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2007, 15:31
  4. Problem with SqLite and Qt
    By ad5xj in forum Newbie
    Replies: 26
    Last Post: 5th June 2007, 01:53
  5. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.