How can I skip a column when inserting a new row into a table without knowing neither the names nor the amount of columns in my table?
Using INSERT (col1, col2) VALUES (1, 2) is not an option, because I can not know the amount of columns during runtime. It’s all calculated from user input.
Thus, I need to skip the first column (id, PRIMARY KEY auto_increment) when inserting.
You can insert without giving column names, but you had to give some values for all columns.