我的开发环境是win2003server、intouch10.0、SQL2005,intouch脚本如下:
ResultCode = SQLConnect(Sql1,"Provider=SQLOLEDB.1;User ID=yk;Password=yk123;Initial Catalog=Runtime;Data Source=local");
ResultCode = SQLSelect(Sql1,"temp",GetCarId","Way_No=9 and Dele_Mark=1 and pwd=BillNum1",ID DESC");
ResultCode = SQLFirst(Sql1);
Car_Id1=Car_Id;
ResultCode = SQLEnd(Sql1);
ResultCode = SQLDisconnect(Sql1);
数据库可以连接,想找出数据库temp表中pwd列中数值等于Intouch中BillNum1变量的数值的行,其中pwd类型是int,BillNum1类型是I/O整型。想请教(ResultCode = SQLSelect(Sql1,"temp","GetCarId","Way_No=9 and Dele_Mark=1 and pwd=BillNum1","ID DESC");)这行程序错在哪里?其中pwd=BillNum1格式无论写成"pwd="+"‘"+BillNum1+"‘或者"pwd="#"+BillNum1+"#都不行。