Quote Originally Posted by Lalremruata View Post
I am stuck and request help. I have an Sqlite3 table and code with PyQt5 in PyCharm. I want to insert id's latest row of table_1 into a "import" column in table_2 simultaneously when a button is click to make new record for/in table_2. [Fetch table_1 id's latest row number and insert into "import" column along with name1 and name2 (user input) text value in table_2 when a button is click.]
How do you insert the row into table_1? Using a QSqlQuery or QSqlTableModel or something else?