SQL语句中的参数问题.(不是存储过程)
set comm = Server.CreateObject( "ADODB.Command ")
OrderString = "41002 "
comm.ActiveConnection = conn
comm.CommandText = "SELECT * FROM YW_Order WHERE OrderID=@V "
comm.Parameters.Append comm.CreateParameter( "@V ",200, ,50,OrderString)
Set RecObj = Server.CreateObject( "ADODB.RecordSet ")
RecObj = comm.execute
错误: "[Microsoft][ODBC SQL Server Driver][SQL Server]必须声明变量 '@V '。 "
把@V 换成?V 也是错误.
------解决方案--------------------这东西你自己写的还是搬的别人的?