Conjunto de psql valor de insertar

Ejemplos de código

8
0

volver a insertar los resultados en POSTGRESQL

# to select specific columns
INSERT IGNORE INTO users (firstname, lastname) VALUES ('Joe', 'Cool') RETURNING id, firstname;
# to return every column
INSERT IGNORE INTO users (firstname, lastname) VALUES ('Joe', 'Cool') RETURNING *;
1
0

POSTGRES INSERTAR EN LA TABLA DE VALOR DE OTRA TABLA

##fetch data from other table with sub-query to insert it into another one

INSERT IGNORE INTO PUBLIC."MyTable"(conversion_job_id, message, last_status)
VALUES (17, 'test', (SELECT status FROM PUBLIC."OtherTable" WHERE id=17))
RETURNING *

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................