ASP操作oracle数据库,是不是只能用SQL语句实现 肯定不是了。你去好好了解一下asp吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有没有直接用rsobj.addnew,rsobj.delete直接实现的?当然有 可以直接用rsobj.addnew,rsobj.delete直接实现但你为什么不用SQL语句呢 <%@LANGUAGE="VBSCRIPT"%><!--#include file="../../../Connections/conn.asp" --><% dim strsql,idno idno=request("idno") strsql="update zdwy.newsindex set ntname='"&request("ntname")&_ "',content='"&request("content")&"',statsno='"&request("statsno")&_ "',specno='"&request("specno")&"'where idno='"&trim(idno)&"'" set cm1 = Server.CreateObject("ADODB.Command") cm1.ActiveConnection = MM_conn_STRING cm1.CommandText = strsql cm1.CommandType = 1 cm1.CommandTimeout = 0 cm1.Prepared = true cm1.Execute() cm1.ActiveConnection.Close set cm1=nothing response.redirect "news.asp"%>直接用ADODB.Command对象不好吗? oracle哪些命令必须commit才能生效? 数据库中只存了一个字段来代表周一到周日的情况,怎么用这一个字段来分别代表周一到周日 PL/SQL基础知识 為什麼別名不能用在where 中??????? 请教:50用户数据库企业版中的50用户表示什么?谢谢 ***********如何删除一个在线的用户(在线等待)***************** 用vc读取字段的值时,遇到空值时怎么办? 在程序发布的时候 有什么文件可以替代客户端的安装 取记录集失败:用尽的Resultset!!!!这是怎么回事???help 触发器问题 导入导出问题,提示权限不够 新手求助
但你为什么不用SQL语句呢
<!--#include file="../../../Connections/conn.asp" -->
<%
dim strsql,idno
idno=request("idno")
strsql="update zdwy.newsindex set ntname='"&request("ntname")&_
"',content='"&request("content")&"',statsno='"&request("statsno")&_
"',specno='"&request("specno")&"'where idno='"&trim(idno)&"'"
set cm1 = Server.CreateObject("ADODB.Command")
cm1.ActiveConnection = MM_conn_STRING
cm1.CommandText = strsql
cm1.CommandType = 1
cm1.CommandTimeout = 0
cm1.Prepared = true
cm1.Execute()
cm1.ActiveConnection.Close
set cm1=nothing
response.redirect "news.asp"
%>直接用ADODB.Command对象不好吗?