I am working a socket.io
to update a database. The data read and served by socket.io
to a file pug
I want to mark with estado=1
.
Initially the value is 0.
I want the% co_of% to read 10 articles and be in consultation to update those records, but I have made a variety of options and neither SELECT
or myadminphp
admit the node js
of update
.
UPDATE consulta
SET consulta.estado=1
FROM
(SELECT * AS consulta
FROM articulos
WHERE articulos.estado<>1 LIMIT 1, 10
AS consulta);