为什么会不相等呢?
请看下面的一段小代码:
....
thisStr="dghsj,djsdlk,dioed,feifj,djsk"
thisArray=split(thisStr,",")
...
Rs.open "select * from mytable where BookName=thisArray(0)",Conn,1,1
...
Rs.movefirst
response.write "thisArray(0)=" & thisArray(0) &" Rs('BookNmae')="&Rs("BookNmae") &"<BR>"
if thisArray(0)=Rs("BookName") then
response.write "相等"
else
response.write "不相等"
end if
.....
--------------------
为什么输出总是“不相等”呢?
而且上面的第一个语句输出的明明是 thisArray(0)=12 Rs('BookNmae')=12
什么原因呢?