Results 1 to 3 of 3

Thread: how to send sqlite query CREATE TRIGGER in qt application

  1. #1
    Join Date
    Jun 2011
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to send sqlite query CREATE TRIGGER in qt application

    Hi,

    I am writing a QT application for phone call log with sqlite backend.
    I have created 3 tables received,missed,dialed.
    I want to send sqlite query CREATE TRIGGER to the database from the qt application thereby based on the trigger i can populate the above said tables.
    Can anybody suggest me on this.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to send sqlite query CREATE TRIGGER in qt application

    Put it through QSqlQuery like any other query you wish to execute.

  3. #3
    Join Date
    Jun 2011
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to send sqlite query CREATE TRIGGER in qt application

    thanks,
    I can send it like other queries

Similar Threads

  1. how to captue sqlite's trigger generated err in QT?
    By BalaQT in forum Qt Programming
    Replies: 10
    Last Post: 14th November 2009, 13:42
  2. Create a windows application with sqlite
    By nittalope in forum Installation and Deployment
    Replies: 9
    Last Post: 6th August 2009, 18:52
  3. How to get sqlite error message RAISE by trigger
    By miraks in forum Qt Programming
    Replies: 4
    Last Post: 22nd November 2008, 11:40
  4. Problem with A SQLite Query
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2008, 11:15
  5. [QT4][SQLITE] Database and query
    By agent007se in forum Newbie
    Replies: 10
    Last Post: 12th July 2006, 22:16

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.