|
|
|
|
¹ÙºÎ / 2000-08-09 / ¿ÀÈÄ 12:29:02 / 211.41.208.13
Á¶È¸¼ö : 114
|
[Áú¹®] Àú ÀÌ°ÍÁ»... |
> Set DbRec=Server.CreateObject("ADODB.Recordset")
> DbRec.CursorType=1
>
> SQLstmt="SELECT num, subject2 FROM "&tb&" WHERE ref = " & ref &" ORDER BY num ASC"
> DbRec.Open SQLstmt, DbCon
>
> rnum=DbRec(0)
> subject2=DbRec(1)
> tn=DbRec.RecordCount
>
>
> À§¿Í °°ÀÌ ·¹ÄÚµå¼ÂÀ¸·Î µ¥ÀÌÅ͸¦ »Ì¾Æ¼ ·çÇÎÀ» µ¹¸®·Á±¸ Çϴµ¥¿©....ÀÌ»óÇÏ°Ô response.write¸¦ ½á¼ Âï¾îºÁµÎ ù¹ø° µ¥ÀÌÅÍ Çϳª¸¸ º¸ÀÌ´õ´Ï...·çÇÎÀÇ °á°ú°¡ ù¹ø° µ¥ÀÌÅ͸¸ °¹¼ö¸¸Å ÂïÈ÷³×¿©....
>
> ·çÇÁ¹®Àº for¹®À» ½á¼ µðÆúÆ®·Î stepÀÌ 1·Î ÀâÇûÀ»Å×±¸..¾ÏÆ° Àß ¸ð¸£°Ú¾î¼ ¿Ã¸³´Ï´Ù.
>
-----------------------------------------------------------
loop µ¹¸®½Ç¶§..
dbrec.movenext ÇØÁּ˴ÂÁö¿ä.. ´ÙÀ½·¹ÄÚµå·Î...
---------------------------
do while not dbrec.eof
.....
dbrec.movenext
loop
----------------------------
--------------------------------
for i=1 to dbrec.recordcount
....
dbrec.movenext
next
---------------------------------- |
|
|