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 雙引號內 要如何加入單引號
我是沒寫過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)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章