|
lr_save_string("{NewParam}","buf");
web_custom_request("sqlquery.do_3",
"URL=http://localhost:8080/fluxWmsV3Serv/sqlquery.do?reqvar=query",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTTP",
"EncType=text/xml; charset=GBK",
"Body=<?xml version=\"1.0\" encoding=\"GBK\"?>\r\n"
"<ROOT-INFUT>\r\n"
" <FUNCTIONNAME>getRecord</FUNCTIONNAME>\r\n"
" <ENCODING>GBK</ENCODING>\r\n"
" <OPERATIONNAME />\r\n"
" <USERID>SAI</USERID>\r\n"
" <LOGIN-LANGUAGE>CN</LOGIN-LANGUAGE>\r\n"
" <DBID>DB</DBID>\r\n"
" <SERVLETNAME>sqlquery</SERVLETNAME>\r\n"
" <METHOD-NAME>query</METHOD-NAME>\r\n"
" <BUSINESS-DATA>\r\n"
" <SQL-ITEM />\r\n"
" </BUSINESS-DATA>\r\n"
" <EXTEND>\r\n"
" <SQL>select A from DBC where no='{buf}'</SQL>\r\n"
" <SQL-WHERE />\r\n"
" <RETURN-COLUMN-NAMES />\r\n"
" <PAGEINDEX />\r\n"
" <PAGESIZE />\r\n"
" <SQL2 />\r\n"
" <MAINKEY />\r\n"
" <ORDERBYLIST />\r\n"
" </EXTEND>\r\n"
"</ROOT-INFUT>\r\n"
"\r\n",
LAST);
输出:select A from DBC where no='{NewParam}'
求助怎样才能输入{NewParam} 参数化的值? |
|