¾È±Ô °øºÎ¹æ

ACTIVE SERVER PAGE > [ÀÌÀü±Û][´ÙÀ½±Û]

µî·ÏÀÏ : 2017-07-03 20:12 Á¶È¸¼ö : 52,645

2.3.1. [ÀÌÀü±Û] ó¸®

°Ô½ÃÆÇÀÇ ³»¿ëÀбâ Áß¿¡ ÀÌÀü±Û À» ó¸®ÇÏ´Â ºÎºÐÀÔ´Ï´Ù.
step < 1 Àº ´äº¯±ÛÀÌ ¾Æ´Ñ°æ¿ì¸¦ ¶æÇÏ°í , ÇöÀç ¼±ÅõȱÛ(number) º¸´Ù ÀÛ°í, ´äº¯ÀÌ ¾Æ´Ñ±Û
Áß¿¡¼­ 'MAX(number)'°¡Àå Å«°ªÀ» ã¾Æ prevnum º¯¼ö¿¡ ±â¾ïÀ» ½Ã¸é µË´Ï´Ù.

2.3.2. [´ÙÀ½±Û] ó¸®

°Ô½ÃÆÇÀÇ ³»¿ëÀбâ Áß¿¡ ´ÙÀ½±ÛÀ» ó¸®ÇÏ´Â ºÎºÐÀÔ´Ï´Ù.
step < 1 Àº ´äº¯±ÛÀÌ ¾Æ´Ñ°æ¿ì¸¦ ¶æÇÏ°í , ÇöÀç ¼±ÅõȱÛ(number) º¸´Ù Å©°í,
´äº¯ÀÌ ¾Æ´Ñ±ÛÁß¿¡¼­ 'MIN(number)' °¡Àå Å«°ªÀ» ã¾Æ nextnum º¯¼ö¿¡ ±â¾ïÀ» ½Ã¸é µË´Ï´Ù.
	<%
	Set DbCon=Server.CreateObject("ADODB.Connection")
	DbCon.Open ("DSN=polcomm;UID=sa;PWD=;")

	SQLstmt = "SELECT prevnum = MAX(number) FROM "& name &" WHERE step < 1 and number < " & number 
	Set RS = DbCon.Execute(SQLstmt) 

	prevnumber = rs("prevnum") 
	rs.close

	SQLstmt = "SELECT nextnum = MIN(number) FROM "& name &" WHERE step < 1 and number > " &number 
	Set RS = DbCon.Execute(SQLstmt) 

	nextnumber = rs("nextnum") rs.close 
	%>
	
 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.