R
R
rogiivs2019-07-20 14:46:08
PHP
rogiivs, 2019-07-20 14:46:08

How to add a line in sqlite if it is not there and change it if it is?

I will describe the sequence of actions, there is a table, the `id` column is set to `primary key`, it is necessary that if the value of the `id` column already exists in the added row, then it is updated, and if it does not exist, then it is added. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2019-07-20
@rogiivs

UPSERT ( APSERT )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question