新微赢技术网

标题: [求助]这句代码怎么改. [打印本页]

作者: 女装批发3    时间: 2010-1-20 03:14
标题: [求助]这句代码怎么改.
timesout = dateadd("n", -1, now())
sql="delete * from zai where times < #" & timesout & "#"
conn.Execute sql
以上是在access数据库里运行正常.
现在我要改用SQL数据库要怎么改.
我是这样改的对吗?
timesout = dateadd("n", -10, getdate())
sql="delete * from zai where times < & timesout & "
conn.Execute sql
[知识问答ωωω.χiuGoo.сom]
请指教.




欢迎光临 新微赢技术网 (http://bbs.weiying.cn/) Powered by Discuz! X3.2