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