How to write this INSERT to make it work
3 answers
INSERT INTO film_out
(start_year, start_month, start_day, end_year, end_month, end_day)
VALUES
(?,?,?,?,?,?)
You have six columns, so you need six values.
If you have two sets of three values, you need to repeat the same values.
You want to use bind variables instead of direct interpolation (instead of "$ year").
+2
source to share