insert into hmdxx(sjbh,hphm,bksj,bklen,bkr,bklb,hpys,cxbm) values (sjbh.nextval,'dd',to_date('2009-04-01 17:15','yyyy-mm-dd hh24:mi:ss'),to_date('2009-04-03 17:15','yyyy-mm-dd hh24:mi:ss'),'d',(select dwbh from dwxx where dwmc='d'),(select ysbm from hpys where ysxx='兰色'),(select cxbm from cxxx where cxlb='大型汽车'));
这条语句在oracle的sql*plus中执行没有问题但是用asp执行却出现无效字符错误
<%
  Dim conn
  
  Set conn=Server.CreateObject("ADODB.Connection")   
  dns="Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=licheng;Password=licheng;Data Source=mydata"   
  conn.Open dns
  sql="insert into hmdxx(sjbh,hphm,bksj,bklen,bkr,bklb,hpys,cxbm) values (sjbh.nextval,'dd',to_date('2009-04-01 17:15','yyyy-mm-dd hh24:mi:ss'),to_date('2009-04-03 17:15','yyyy-mm-dd hh24:mi:ss'),'d',(select dwbh from dwxx where dwmc='d'),(select ysbm from hpys where ysxx='兰色'),(select cxbm from cxxx where cxlb='大型汽车'));"
 set rs=conn.execute(sql)  
%>技术信息(用于支持人员)错误类型:
OraOLEDB (0x80040E14)
ORA-00911: 无效字符
/test1.asp, 第 24 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) 网页:
POST 159 ??? /test1.aspPOST Data:
txthphm=dd&txtdate1=2009-04-01+17%3A15&txtdate2=2009-04-03+17%3A15&txtbkr=d&txtbkdw=d&cmbhpys=%C0%BC%C9%AB&cmbcllx=%B4%F3%D0%CD%C6%FB%B3%B5&Submit=%CC%E1%BD%BB 时间:
2009年4月18日, 17:18:52 
详细信息:
Microsoft 支持