Where (條件式)內容格式如何寫?

回覆文章
wen_weo

Where (條件式)內容格式如何寫?

文章 wen_weo »

grid 屬性內的 Where (條件式)如何寫?
我因為在Where (條件式)內下達任何條件,均執行錯誤?會有如下訊息

Microsoft VBScript 編譯階段錯誤 錯誤 '800a0401'

必須是陳述式的結尾

/ledger/mailformlistGrid.asp, 列216

sWhere = " WHERE (state<>"0") AND (" & sWhere & ")"
--------------------------^
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

SQL 錯誤

文章 yehlu »

您在SQL裡應該用單引號包住字串,
您可以自己開啟原始碼把組合出的 SQL echo 出來看就知道有沒有問題了
回覆文章

回到「CodeCharge」