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. QSQL return multiple rows on a single fetch
Forum Updated to NodeBB v4.3 + New Features

QSQL return multiple rows on a single fetch

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 197 Views 2 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.
  • elicatE Offline
    elicatE Offline
    elicat
    wrote on last edited by
    #1

    Hi,

    I am wondering if I can define a number of rows that can be returned on a single fetch when executing queries.

    Please see the following for refrence: https://learn.microsoft.com/en-us/sql/odbc/reference/develop-app/rowset-size?view=sql-server-ver16

    Saluti, Gianfranco Elicat

    JonBJ 1 Reply Last reply
    0
    • elicatE elicat

      Hi,

      I am wondering if I can define a number of rows that can be returned on a single fetch when executing queries.

      Please see the following for refrence: https://learn.microsoft.com/en-us/sql/odbc/reference/develop-app/rowset-size?view=sql-server-ver16

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @elicat
      Do you have evidence as to whether the QSQL code is already using such a parameter in its queries? Have you tried e.g. QSqlQueryModel::fetchMore()?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        You can use the LIMIT clause in your query depending on what you want to achieve. It can help for doing paging.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved