Results 1 to 7 of 7

Thread: Qt4: How to use Stored Procedures?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4: How to use Stored Procedures?

    Quote Originally Posted by pinktroll
    how can i use Stored Procedures in Qt4?
    Everything depends on the database you use.

    http://doc.trolltech.com/4.1/sql-dri...cedure-support

    Quote Originally Posted by pinktroll
    Or is there a way to do this without Stored Procedures?
    I don't use MySQL, but in PostgreSQL you can do it like this:

    SQL Code:
    1. INSERT ...;
    2. SELECT currval( 'sequence_name' );
    To copy to clipboard, switch view to plain text mode 

    Maybe MySQL has a similar method, for example using @variables?

    Anyway creating stored procedures for common queries might reduce the number of mistakes and increase performance.

  2. The following user says thank you to jacek for this useful post:

    pinktroll (27th August 2006)

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.