sql >> Base de Datos >  >> RDS >> Oracle

Insertar Oracle de seleccionar en la tabla con más columnas

Simplemente agregue el '0' en su selección.

INSERT INTO table_name (a,b,c,d)
    SELECT
       other_table.a AS a,
       other_table.b AS b,
       other_table.c AS c,
       '0' AS d
    FROM other_table