0
我嘗試構建可以獲取SQL數據的Visual Studio項目。你能在我的SQL語法中找到錯誤嗎?
錯誤是:1064檢索數據庫信息時出錯。 SQL語法錯誤。
我不知道錯誤在哪裏。
sQuery = string.Format("select distinct stringid from {0} where TIMESTAMPDIFF(day, insertts, now()) < 30 " +
"and status = '{2}' and stringid not in (select distinct stringid from {1} where TIMESTAMPDIFF(day, insertts, now()) < 30)",
任何事情都會有幫助。
感謝
你能打印已經用值格式化的sQuery嗎?可能是您提供的參數數據有些問題 – Troydm 2011-04-21 22:10:13
@Martin我的不好。沒有看到代碼中的細節。缺少代碼。所以我不是多任務處理。 – 2011-04-21 22:15:29
你可以請進入sQuery並在這裏打印出我們在這裏的sQuery的輸出。 – 2011-04-21 22:18:28