asp update 中的一小段

·

set Command1 = Server.CreateObject("ADODB.Command")

Command1.ActiveConnection = MM_net_STRING

Command1.CommandText = "UPDATE g_ad  SET gu_latime = ‘"&up_now&"’  WHERE gu_name =’"&up_name&"’"

Command1.CommandType = 1

Command1.CommandTimeout = 0

Command1.Prepared = true

Command1.Execute()

‘"&up_now&"’   ‘"&up_name&"’  这两个变量都是文本属性,第一个是时间、第二个是文本

评论

发表回复

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