N
N
nika092017-06-09 11:48:09
SQL
nika09, 2017-06-09 11:48:09

How to implement getting the id of the last record of the table and put it in another?

There is a database in which 2 tables, the first table (Users) stores data about registered users, the second database (devise) contains the result of their actions. How to get the id of the last registered user and add it to the devise table??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
n-fom, 2017-06-09
@n-fom

last_insert_rowid() - www.sqlite.org/lang_corefunc.html#last_insert_rowid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question