注册 登录
编程论坛 ASP技术论坛

SQL查询语句.我这样书写对吗?

wfemile 发布于 2008-07-25 22:10, 1059 次点击
rs=getrecordset("select count(*) as kount from bookorderlist where bookid=" & intid,0)
6 回复
#2
ladapt2008-07-25 22:50
rs=getrecordset("select count(*) as kount from bookorderlist where bookid=" & intid &",0)
#3
ladapt2008-07-25 22:50
这样试试
#4
wfemile2008-07-25 23:42
....这样都没有配对起来。.
#5
yms1232008-07-26 10:59
Set rs=getrecordset("select count(*) as kount from bookorderlist where bookid=" & intid &",0)
在VBScript里对象一定要Set,只有变量是不需要Set的
#6
wfemile2008-07-27 20:12
哦。。我忘了贴上去了。。我原来的语句里有SET的。。
#7
octillion2008-07-27 20:31
天晓得你这么写对不对

getrecordset是什么东西?
intid是什么东西?
0又是什么东西?

我们不是来解黑盒问题的。
1