Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Persian
  4. Is the number of columns in the database limited?
Forum Updated to NodeBB v4.3 + New Features

Is the number of columns in the database limited?

Scheduled Pinned Locked Moved Solved Persian
3 Posts 2 Posters 850 Views
  • 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.
  • Negar_mgN Offline
    Negar_mgN Offline
    Negar_mg
    wrote on last edited by
    #1

    I am using QSqlTableModel
    I created a table in the database with 15 columns, now I want to add two more columns with it
    model_repo-> submitAll () returns true but no rows are added to the table, is there another way to add rows to the database? Is the number of columns in the database limited?

    JonBJ 1 Reply Last reply
    0
    • Negar_mgN Negar_mg

      I am using QSqlTableModel
      I created a table in the database with 15 columns, now I want to add two more columns with it
      model_repo-> submitAll () returns true but no rows are added to the table, is there another way to add rows to the database? Is the number of columns in the database limited?

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

      @Negar_mg
      The number of columns is not limited, or certainly nowhere near 15 columns.
      Whether any rows should be added to database via submitAll() depends on what you have previously done in the model to add rows?
      Adding new columns has nothing to do with submitAll().
      It seems very unclear whether you are adding columns or rows. You certainly should not be mixing the two! Adding new columns requires very different code from adding rows.

      1 Reply Last reply
      2
      • Negar_mgN Offline
        Negar_mgN Offline
        Negar_mg
        wrote on last edited by
        #3

        thank you :)

        1 Reply Last reply
        0

        • Login

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