Forgive me for what may be a basic question, but as I dive headfirst into teaching myself SQL & PostgresSQL, I've stumbled upon an issue.
I'm attempting to insert a large number of placeholders into an INSERT statement, but I'm struggling to correctly pass a daterange into the placeholder. Here is my code:
INSERT INTO campgrounds (campground_name, email_address, address, city, state, zipcode, phone_number, website, number_of_sites, maximum_rv_length, max_amps, description, seasondates, campground_type, region, open_date, close_date) VALUES ($1, $2, $3, $5, $5, $6, $7, $8, $9, $10, $11, $12, [$13, $14), $15, $16, $17, $13, $14) RETURNING id
Here, seasondates is a daterange type, and $13 and $14 correspond to the dates I'm trying to insert.
I appreciate your assistance!