Coldfusion を使用して、構造体 (キーと値のペア) の内容をデータベース テーブルに挿入しています。これは私のコードです:
<cfloop collection="#results#" item="ID" >
<cfquery name="insertStuff" datasource="myDataSource">
INSERT INTO web..Stuff (ID, Name)
VALUES (#ID#, #results[ID]#)
</cfquery>
</cfloop>
これは十分に単純に思えます...しかし、次のエラーが発生しています:
Incorrect syntax near 'VA'.
何か案は?