討論串[問題] ASP 3.0 取出當日的資料可以這樣寫嗎
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者jimshih (傳說中的果汁學長)時間20年前 (2006/02/16 14:06), 編輯資訊
0
0
0
內容預覽:
試試這招, 偷吃步法:p. sql = "Select * from DateBase where " & _. "DateDiff(d,DBDate,getdate()) = 0". 不過前提是... 你的資料庫要是MS SQL 的... (Access的我就不曉得行不行得通了). --.

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者molucolin (molucolin)時間20年前 (2006/02/16 13:01), 編輯資訊
0
0
0
內容預覽:
if Session("Date")=Empty then. Session("Date")=Date. end if. TodayDate=Session("Date"). sql="Select * from DataBase where DBDate = TodayDate". ^^^^^^^
首頁
上一頁
1
下一頁
尾頁