作者abgne (abgne)
看板Web_Design
标题Re: [问题] ASP 3.0 一些标点符号不知道要怎麽标记
时间Thu Feb 16 12:02:39 2006
※ 引述《molucolin (molucolin)》之铭言:
: If Request("txtBeginDate") <> "" And Request("txtEndDate") <> "" then
: sql="Select * from Database where Date between Request("txtBeginDate")
: and Request(txtEndDate)"
: End if
: 在 sql 双引号内 要如何加入单引号
我是没写过ASP啦..不过你这样写应该是不会对吧..
把sql改成下面的看看
sql = "Select * from Database where Date between '" & Request("txtBeginDate")
& "' and '" & Request(txtEndDate) & "'"
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 202.154.192.30
※ 编辑: abgne 来自: 202.154.192.30 (02/16 12:04)