作者jimshih (果汁)
看板Web_Design
标题Re: [问题] ASP 3.0 一些标点符号不知道要怎麽标记
时间Thu Feb 16 12:01:26 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 双引号内 要如何加入单引号
程式码怪怪的...
试试:
sql = "Select * from Datebase where Date between '" & _
Request("txtBeginDate") & "' and '" & _
Request("txtEndDate") & "'"
如果试过了记得上来回一下啊~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.229.61.172