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. update row of one table with row inserted in other table SQLITE
QtWS25 Last Chance

update row of one table with row inserted in other table SQLITE

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 495 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.
  • F Offline
    F Offline
    filipdns
    wrote on last edited by
    #1

    Hello,

    I have 2 tables sqlite and on each I have common name column "registration".
    when I insert in the first table the drive time of the day, I have to increase the total time in the second table.
    Could you help me?
    thank you for your help

    jsulmJ 1 Reply Last reply
    0
    • F filipdns

      Hello,

      I have 2 tables sqlite and on each I have common name column "registration".
      when I insert in the first table the drive time of the day, I have to increase the total time in the second table.
      Could you help me?
      thank you for your help

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @filipdns It is not really a Qt question more a SQL question.
      In SQL you can use triggers for that. See http://www.mysqltutorial.org/create-the-first-trigger-in-mysql.aspx
      https://sqlite.org/lang_createtrigger.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

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