Answers for "postgres add data to table"

SQL
2

postgresql add entry to table

INSERT INTO table_name(column1, column2, …)
VALUES (value1, value2, …);
Posted by: Guest on March-19-2021
0

POSTGRES INSERT INTO TABLE VALUE FROM OTHER TABLE

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

INSERT INTO PUBLIC."MyTable"(conversion_job_id, message, last_status)
VALUES (17, 'test', (SELECT status FROM PUBLIC."OtherTable" WHERE id=17))
RETURNING *
Posted by: Guest on August-10-2021

Code answers related to "postgres add data to table"

Code answers related to "SQL"

Browse Popular Code Answers by Language