我正在使用 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'.
有任何想法吗?