asp update 代码

<%
dim up_name
up_name=request.Form("up_name")
dim up_word
up_word=CInt(request.Form("up_word"))

Set Command1 = Server.CreateObject ("ADODB.Command")
Command1.ActiveConnection = MM_net_STRING
Command1.CommandText = "UPDATE g_main  SET g_type ="&up_word&" WHERE  g_name like '%"&up_name&"%'"
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()

%>

关注这里up_word是数字类型。还有一个where的like

etzzy

希望50年后它依然存在,让我感觉我一直在做一件稍微有点cool的事情

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

微信扫一扫

微信扫一扫

微信扫一扫,分享到朋友圈

asp update 代码
返回顶部

显示

忘记密码?

显示

显示

获取验证码

Close