帮我解释下几句程序
1. <%2. function Inquery
3. tablename="产品类别"
4. OBJCONN=SERVER.CreateObject("ADODB.Connection")
5. strDSN="DSN=Trate;uid=test;pwd=test1"
6. OBJConn.open strDSN
7. strSQL="Insert Into"&Tablename&"Value("&_" ' " (解释下)
8. &Request.FORM("NewClassifyNo")&" ', "&_ (解释下)
9. " ' "& Request.Form("Newclassifyinfo")&" ' ")" (解释下)
10. Set rs =objconn.execute(strsql) (解释下)
11. strSQL="select*from"&tablename (解释下)
12. Set rs=objconn.execute(strsql) (解释下)
13. response.write" SQL Query的内容:"&strSQL
14. if not rs.eof then (解释下)
15. response.write"<Table Border=1>"
16. rs.movefirst (解释下)
17. fdcount=rs.fields.count (解释下)
18. response.write"<tr>"
19. for i=o to fdcount -1
20. response.write "<tr><font size=2>"&rs.fields(i).name&"</font></td>"
21. next
22. response.write "</tr>"
23. do while not rs.eof (解释下)
24. response"<tr>"
25. for i =0 to fdcount-1
26. response.write"<td><font size=2>"&rs.fields(i).value&"</font></td>"
27. next
28. response.write"</tr>"
29. rs.movenext (解释下)
30. loop
31. response.write"</table>"
32. else
33. response.write"没有相符的信息可供读取!"
34. end if
35. OBJconn.close
36. set rs=Nothing
37. set OBJConn=Nothing
38. end funcition
39. %>
(以上有标注的行,大侠帮我解释下,小弟在这跪谢了)
第5行的strDSN是什么东西?str打头的是什么意思?
我还问下,要看懂这些函数,要用什么样的书,比较好?