28,398
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
<%
dim a
a=replace(rs8("tt"),"'","''")
sql="select top 1 * from abc where dd = 'ffcc' and hh = '" & a & "' order by id"
response.write(sql)
sql="select top 1 * from abc where dd = 'ffcc' and hh = '" & replace(rs8("tt"),"'","''") & "' order by id"
response.write(sql)
%>
话说你数的清楚几个单引号几个双引号不!