Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

242
Visualizações
update query in postgrel RDS on aws

“42703” or “Column does not exist” Understanding the issue

I have trying to update the table RDS specific to postgrel with by inserting new attribute in class object.
The data would something like this after inserting or updating :

"class" : { "isPresent" : false }

Details :
Database : postgrel
Table name : student
Attributes for table :  student_id, class
"class" attribute is of object type

This query works on my machine

update "student" set "class" = jsonb_set("class"::jsonb, '{isPresent}','false', true) WHERE "student_id" =1

When I'm trying to do the same query, on aws postgrel it does not work and throws an error query :

{
  "query": "update student set class = jsonb_set('\"student.class\"'::jsonb, '{isPresent}','false', true) WHERE '\"student.student_id\"' = 1"                                  
}

Error :

"column \"class\" of relation \"student\" does not exist"

When tried this, gives syntax erro :

{
   "query": "update '\"student\"' set '\"class\"' = jsonb_set('\"student.class\"'::jsonb, '{isPresent}','false', true) WHERE '\"student.student_id\"' = 1"                                  
    }

I think the issue is syntax error : postgrel quotes syntax but have no idea how can I use double quotes under doble quotes

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda