Increment a database field by 1

With MySQL, how would I updating table field by 1 within a sql command?
Ankur Rajput
Asked 17-12-2024
192

Answer (1)
UPDATE mytable SET logins = logins + 1 WHERE id = 12
Deepak Sharma
Asked 18-07-2018
45 Likes
Comments
Write comment

Submit your answer