ASP Classic Named Parameter in Paramaterized Query: Must declare the scalar variable

后端 未结 4 1554
终归单人心
终归单人心 2020-12-06 22:05

I\'m trying to write a parameterized query in ASP Classic, and it\'s starting to feel like i\'m beating my head against a wall. I\'m getting the following error:

4条回答
  •  醉话见心
    2020-12-06 23:02

    with server.createobject("adodb.command")
      .activeConnection = application("connection_string")
      .commandText = "update sometable set some_col=? where id=?"
      .execute , array(some_value, the_id)
    end with
    

提交回复
热议问题