asp 트 리 구조 구현
2105 단어 asp 트 리 구조 구현
") ShowTree rs(0) i=i-1 rs.Movenext Loop rs.Close:Set rs=Nothing End Function Sub ShowTable(table) Dim rs Set rs = Server.CreateObject("ADODB.RecordSet") sql="select * from "&trim(table) rs.open sql,strconn,1,1 For i=0 To rs.Fields.Count-1 Response.Write("["&rs.fields(i).Name&"]") next Response.Write("
") Do While Not rs.Eof For i=0 To rs.Fields.Count-1 Response.Write("["&rs.fields(i).Value&"]") next Response.Write("
") rs.MoveNext Loop rs.Close:Set rs=Nothing End sub ShowTree(0) ShowTable("test") %>