Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

267
Vistas
Update empty column with Data from two other columns all varchar/text Postgresql

I have 2 columns named type1 & type2 in a table with the name table1 i need to populate their data to my newly created column models but not just to retrieve their data via query but to actually populate the new column "table1".models

at the moment i can have what i want with the following query

select concat("table1".type1,' ',"table2".type2) as models
from "table1";

I need an update column models command to actually populate the newly created column models in postgres.

Thank you.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

first alter table and add new column like this

ALTER TABLE table1 ADD type3 VARCHAR(100) NULL

then update table like this

update table1 set type3 = concat(type1,' ',type2)
over 4 years ago · Santiago Trujillo Denunciar

0

update table1 set models = concat(type1,' ',type2)

will do what you try to achieve.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda