Hola listeros,

tengo una duda, revisando la documentacion de postgresql sale esto

UPDATE weather SET temp_lo = temp_lo+1, temp_hi = temp_lo+15

lo cual deberia sumar 1 o 15 a un campo de la base

yo tengo esto

update preguntas set uno =  uno  +1

pero no me suma ese 1 al campo uno

CREATE TABLE "public"."preguntas" (
"uno" int4 DEFAULT 0 NOT NULL,
"dos" int4 DEFAULT 0 NOT NULL,
"tres" int4 DEFAULT 0 NOT NULL,
"cuatro" int4 DEFAULT 0 NOT NULL,
"cinco " int4 DEFAULT 0 NOT NULL,
"seis" int4 DEFAULT 0 NOT NULL,
"siete" int4 DEFAULT 0 NOT NULL,
"ocho" int4 DEFAULT 0 NOT NULL,
"nueve" int4 DEFAULT 0 NOT NULL
)

esto es para una encuesta, pero no resulta, algo mal estare haciendo

Saludos

Responder a