Re: [問題] ASP 3.0 一些標點符號不知道要怎麼標記

看板Web_Design作者 (abgne)時間20年前 (2006/02/16 12:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《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)
文章代碼(AID): #13y_aO42 (Web_Design)
文章代碼(AID): #13y_aO42 (Web_Design)