Re: [問題] ASP 3.0 一些標點符號不知道要怎麼標記
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 3 篇):
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章