求纠错一句SQL语句

来源:百度知道 编辑:UC知道 时间:2024/07/02 07:40:13
select * from select_news_table where newskind="代表新闻" order by newsid desc

编译器报错了……

Microsoft VBScript 编译器错误 错误 '800a0408'

无效字符

/select_mid.asp,行 17

Rsright.open "select * from select_news_table where newskind="代表新闻" order by newsid desc",conn,1,1
---------------------------------------------------------^

select * from select_news_table where newskind="代表新闻" order by newsid desc
"代表新闻"这里出错了!!!这里的字符串不能用双引号,应该使用单引号.把它改为'代表新闻'就可以了