Results 1 to 3 of 3

Thread: Bind Table Name at run time..

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Bind Table Name at run time..

    Hi,
    I use BindValue to bind values at run time to a query...but i don't know how to bind different tables(Table names) with single query..
    Is their any functionality to bind table name at run time..

  2. #2
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Bind Table Name at run time..

    setObjectName () ...???

  3. #3
    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: Bind Table Name at run time..

    No, there is no facility to parameterise the table name in SQL (not a Qt limit). You have to do that with string substitution or a better database design.

Similar Threads

  1. Replies: 2
    Last Post: 12th May 2010, 18:48
  2. how to bind code to threads
    By prasanth.nvs in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th February 2009, 16:16
  3. UdpSocket bind warning--pls have a look
    By swamyonline in forum Qt Programming
    Replies: 0
    Last Post: 28th August 2008, 11:42
  4. Socket bind error
    By rburge in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2007, 00:18
  5. QUdpSocket bind / connectToHost ?
    By mnemonic_fx in forum Newbie
    Replies: 2
    Last Post: 17th July 2007, 03:20

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.