易截截图软件、单文件、免安装、纯绿色、仅160KB

关于ASP中查询语句的问题

  写了一个SQL语句,用于更新数据表,请各位看看是否是正确的。谢谢了。

    SQL code:

set sql=conn.exeucte("update table1 set otherinfo ='该产品已于'" & today & "'由'" & customer & "'转移至'" & Ncustomer & "'' where table1.keyword='" & keyword & "'")
set sql=nothing



    其中 today customer Ncustomer keyword都是变量。
VBScript code:
conn.exeucte("update table1 set otherinfo ='该产品已于" & today & "由" & customer & "转移至" & Ncustomer & "' where keyword='" & keyword & "'")


最好按下面这个写:
VBScript code:
conn.exeucte("update table1 set otherinfo ='该产品已于" & replace(today,"'","''") & "由" & replace(customer,"'","''") & "转移至" & replace(Ncustomer,"'","''") & "' where keyword='" & replace(keyword,"'","''") & "'")

<


相关问答:

asp中用javascript动态改变Image的src的路径问题

<form id="form1" runat="server">
  <div>
  <script type="text/javascript">
  function oo(a){
  document.getEleme ......

我是一名ASP处学者!想请帮忙推荐一本ASP好的书籍

我原本是学jsp的可找了一个ASP的公司!我要重新学习! 学习ASP! 希望大家推荐一本好书给我谢谢
<ASP3.0高级编程> 网上有电子版的

发现网上asp信息时最多的 比其他的都多好多

yun

找本有应用事例的A ......

ASP伪静态的另类问题

由于对页面使用了伪静态
并且对ID进行了加密。
主要代码如下:
httpd.ini
RewriteRule /List-([0-9,a-z]*).html /List.asp\?ComId=$1 [N,I]

程序代码
A为加密,B为解密函数
<a href=&q ......

asp跟Access数据连接问题。

IsSqlDataBase = 0 '主数据库类型(1=SQL,0=AC)

'===========================================================================
SqlDatabaseName = "ads365" '主数据库名
S ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号