H
H
hardwellZero2015-03-08 17:50:29
SQLite
hardwellZero, 2015-03-08 17:50:29

How to change the value in the database?

You need to rank posts.
I have a database with a table "Comments" of the form:

id
text
author
post_id
like (default = 0)

You need to do +1 when you click on the button.
(Use a form? What if there is already a form on the page? Use prefixes?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-03-08
@NeiroNx

in Transact SQL I do like this

UPDATE [base].[shema].[table] SET [like] += 1 WHERE [id]=1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question