I am wopping out a really LOONG SQL statement for an Insert into Access and wanted to know if there’s a syntax that allows me to clearly map the inserted value to a column name in a table. I’ve tried a couple of approaches, but getting no real success:
INSERT INTO db (colname1, colname2, colname3) VALUES ((colname1=colname1value), (colname2=colname2value), (colname3=colname3value)) and again using AND in place of commas in the VALUE statement or not nesting the VALUE parenthesis and I even tried eliminating the column names in the INSERT INTO section and having the mapping in the VALUE part of the statement.
The issue here is a way to easily understand what value goes into what column for a SQL containing 22 column names and values — which will obviously be hard to maintain without some way to tag what the actual value will be mapped to a column.
any ideas?