Answers for "psql create table based on another table"

SQL
2

postgresql create table as select

CREATE TABLE films_recent AS
  SELECT * FROM films WHERE date_prod >= '2002-01-01';
Posted by: Guest on November-27-2020
0

postgres populate table from another table

INSERT INTO TABLE1 (id, col_1, col_2, col_3)
SELECT id, 'data1', 'data2', 'data3'
FROM TABLE2
WHERE col_a = 'something';
Posted by: Guest on September-29-2021

Code answers related to "psql create table based on another table"

Code answers related to "SQL"

Browse Popular Code Answers by Language