I have a csv file with two columns: productId, productName.
My table has the following columns: productId, productName, productprice.
I want to be able to copy this file into a Postgres table using the COPY command and at the same time set a value for a third column: Productprice.
productPrice is same for all rows. I use:
COPY product_master(productId, productName)
FROM 'product.txt' DELIMITERS ',' CSV;
I want to attach a price to all rows.