L
L
LordPrimes2018-04-03 22:19:32
MySQL
LordPrimes, 2018-04-03 22:19:32

How to build an UPDATE query correctly?

Good afternoon. I came across DML, and I can’t how to build a query like

UPDATE tovar SET count = view+1 WHERE view = 'view'
In our case, it comes out after WHERE when the condition must be met, and this is a change, but I want the view parameter to change for a specific product, but for all products.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LordPrimes, 2018-04-03
@LordPrimes

Solved my question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question