Insert into tabella se il valore esiste in un'altra tabella postgresql
Esempi di codice
1
0
POSTGRES INSERIRE NELLA TABELLA IL VALORE DA UN'ALTRA TABELLA
##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 *