关于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,"'","''") & "'")
<
相关问答:
我原本是学jsp的可找了一个ASP的公司!我要重新学习! 学习ASP! 希望大家推荐一本好书给我谢谢
<ASP3.0高级编程> 网上有电子版的
发现网上asp信息时最多的 比其他的都多好多
yun
找本有应用事例的A ......
我帮学校做了一个站.
在校园网的情况下,能够登陆成功,后台帐号都能通过,进入后台
但是在外网AD的情况下,能够登陆后台的页面,页面是ASP文件.
但是输入帐号和密码的时候,网页运行很久都 ......
<%
Sql="select top 8 * from NewsData where d_classid in (select classid from NewsClass where ParentID=16)"
Rs.Open Sql, conn, 1,1
Do Until Rs.Eof
......
本人有三年开发经验,现在找工作(厦门),,,有意者请联系QQ:523054271
1.5年工作经验找工作 他要多少 我要一半~~
别说三年的了...就是5年的也一抓一大把.....
俺需要用asp+access做一个进销存软件,您能做 ......
IsSqlDataBase = 0 '主数据库类型(1=SQL,0=AC)
'===========================================================================
SqlDatabaseName = "ads365" '主数据库名
S ......