|
|
|
|
½Ã¾ÖƲ / 2001-08-14 / ¿ÀÈÄ 8:18:42 / 211.110.89.243
Á¶È¸¼ö : 134
|
[Áú¹®] ¿ä°ÍÀÌ Á¤´äÀ̾ú½À´Ï´Ù....¤Ñ¤Ñ?x |
> max¸¦ »ç¿ëÇÏ¿© ·¹ÄÚµåÀÇ ÃÖ°í°©À» ±¸ÇÏ°í..
> Á¶°Ç¹®À¸·Î ºñ±³ÇÏ°í...
> ´Ù½Ã recordsetÀ» ¿¾î¼ desc·Î
> »Ñ·ÁÁÖ¸é µÇ´Â°Å ¾Æ´Ï°¡¿ä..
>
>
-----------------------------------------------------------
ÀÌ°ÍÀÌ Á¦°¡ ¿øÇÏ´ø Á¤´äÀÔ´Ï´Ù.....
Set db = Server.CreateObject("ADODB.Connection")
db.Open ("DSN=aaa;uid=sa;pwd=;")
SQLmax = "Select MAX(num) from aaa"
Set MAX = db.Execute(SQLmax)
SQL = "Select * from mdgarden Order By kkk Desc"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open SQL,db,1
.......................................
³ªÁß¿¡ MAX(0)À» ÀÌ¿ëÇÏ¸é µÅÁö¿ä..
ÀÌ·±¸» ÇÏ´Ï±î ³»°¡ ²À ¹®Á¦¸¦ ³½°Å °¡Åä ¤Ñ¤Ñ?
¾ÏÆ° ¹ø°Å·Ó°Ô Çصå·Á¼ Á˼Û....
»ç½ÇÀü ´Ü¼øÇؼ Çϳª¸¸ »ç¿ëÇÒ ÁÙ ¾Ë¾ÒÁö Àú·¸°Ô µÎ°¡Áö¸¦ »ç¿ëÇÒÁÙÀº ¸Ö¶ú°Åµ¢¿© ¤Ñ¤Ñ;
|
|
|