SAK }‘ŠÙ
ASP VB Script Šî‘bŽÀ’n•Ò4 - ƒf[ƒ^ƒx[ƒXŽQÆA€–Ú–¼Žæ“¾A€–Úƒ^ƒCƒv”»’è
¡ƒf[ƒ^ƒx[ƒXŽQÆ - ‚æ‚è—Ç‚¢ƒR[ƒh E€–Ú–¼‚âƒf[ƒ^ƒ^ƒCƒv‚ðƒf[ƒ^ƒx[ƒX‚©‚çŽæ“¾‚µ‚Ä•\Ž¦‚ÉŽg—p‚·‚é‚ÆA ‚æ‚è”Ä—p“I‚ȃR[ƒh‚É‚È‚éB EŽŸ‚̃R[ƒh‚Å‚ÍAƒe[ƒuƒ‹€–Ú”‚‖ڃ^ƒCƒv‚ª•Ï‚í‚Á‚Ä‚àA“¯‚¶ƒR[ƒh‚Å Ž©“®“I‚É•\Ž¦‚·‚邱‚Æ‚ª‚Å‚«‚éB <%@ Language=VBScript %> <% const title = "ƒf[ƒ^ƒx[ƒXŽQÆ" const dsn = "dsn=SAK3_ADO;uid=SAK;pwd=SAK" const dcr = 3 '** adUseClient const dbi = "*" const dbf = "sak.ƒeƒXƒgm" const dbw = "" '** where ƒL[ like 'a%' const dbo = "order by ƒL[" dim sql, rs, ct, tdal, i, s '** ƒf[ƒ^ƒx[ƒXÚ‘± if isempty(session("s3cn_ado")) then set session("s3cn_ado") = server.CreateObject ("ADODB.Connection") session("s3cn_ado").Open dsn session("s3cn_ado").CursorLocation = dcr end if '** ƒNƒGƒŠ”s sql = "select " & dbi & " from " & dbf & " " & dbw & " " & dbo set rs = session("s3cn_ado").Execute(sql) %> <HTML> <HEAD> <TITLE><% = title %></TITLE> </HEAD> <BODY> <% '** ƒf[ƒ^ƒŠƒXƒgƒAƒbƒv response.write("<P>") response.write("<TABLE rules=ALL bgcolor=#b0b0b0 border=0 cellPadding=3 cellSpacing=2><TBODY>") response.write("<TR bgcolor=#d0d0d0>") response.write("<TD>ƒŠƒXƒg”Ô†</TD>") for i = 0 to rs.fields.count - 1 response.write("<TD>" & rs(i).name & "</TD>") next response.write("</TR>") ct = 0 do until rs.eof ct = ct + 1 s = right("000000" & ct, 6) response.write("<TR bgcolor=#f0f0f0>") response.write("<TD>" & s & "</TD>") for i = 0 to rs.fields.count - 1 if rs(i).type <> 131 and rs(i).type <> 139 then tdal = "" else tdal = " align=right" end if response.write("<TD" & tdal & ">" & rs(i) & "</TD>") next response.write("</TR>") rs.movenext loop response.write("</TBODY></TABLE>") response.write("</P>") '** ƒŒƒR[ƒhƒZƒbƒgƒNƒ[ƒY rs.close %> </BODY> </HTML> ¡ASP VB Script Šî‘bŽÀ’n•ÒŽ‘—¿
¡ASP VB Script Šî‘b•ÒŽ‘—¿
¡ASP VB Script ADO + SQL ‰ž—p•ÒŽ‘—¿
¡ASP VB Script oo4o + SQL ‰ž—p•ÒŽ‘—¿
¡SQL Šî‘b•ÒŽ‘—¿
¡SQL Šî‘bŽÀ’n•ÒŽ‘—¿
¡SQL ƒ`ƒ…[ƒjƒ“ƒO•ÒŽ‘—¿
¡Oracle PL/SQL •ÒŽ‘—¿
¡PostgreSQL •ÒAJAVA ServletAJSP •ÒŽ‘—¿
¡MySQL •ÒŽ‘—¿