How can I write a stored procedure that imports data from a CSV file and populates the table?
COPY table_name FROM 'path/to/data.csv' DELIMITER ',' CSV HEADER;