|
|
|
|
俵ÀÌ / 2000-10-25 / ¿ÀÈÄ 6:31:18 / 203.255.3.190
Á¶È¸¼ö : 116
|
[Áú¹®] Äõ¸® Á¶¾ð ºÎŹµå¸³´Ï´Ù. |
> ´Ù¸§ÀÌ ¾Æ´Ï¶ó °£´Ü(?)°Ë»ö±â ¸¦ ¸¸µå·Á°í ÇÕ´Ï´Ù.
> ÃÑ 8°³ÀÇ Á¶°ÇÁß¿¡
> 1°³ÀÇ Á¶°ÇÀ» ¼±ÅÃÇؼ °Ë»öÇÒ¼öµµ ÀÖ°í
> 2°³ÀÇ Á¶°ÇÀ» ¼±ÅÃÇؼ °Ë»öÇÒ¼öµµ ÀÖ°í
> ¸ðµç Á¶°ÇÀ» ¼±ÅÃÇؼµµ °Ë»öÇÒ¼ö ÀÖ°Ô ¸¸µé°í ½Í½À´Ï´Ù.
> Äõ¸®¸¦ ÀÌ·±½ÄÀ¸·Î ³¯·È´Âµ¥¿ä..and¸¦ ¾²¸é ¸ðµç Á¶°ÇÀ»
> ¸¸Á·ÇÏ´Â°Í ¹Û¿¡ ¸øÇÏ°í or´Â Çϳª ¹Û¿¡ ¾ÊµÇ´Ï ÀÌÀÏÀ» ¾î¼ÁÒ
> Âü°í·Î Äõ¸®´Â
>
> sql = "select Han_Name,Sex,Learning,office,house,Wedding_Is,house_Address1,Religion,part1 from usertb where Sex='"&Sex&"' or Learning='"&Learning&"' or office='"&office&"' or house='"&house&"' or Wedding_Is='"&Wedding_Is&"' or house_Address1='"&house_Address1&"' or Religion='"&Religion&"' or part1='"&part1&"'"
>
> ÀÔ´Ï´Ù.
> Á¦°¡ Èä³»³»°í ½ÍÀº°÷Àº ¹Ù·Î ¿©±âÀÔ´Ï´Ù.
> www.tomatodream.com/partner/fr_partner2.html
-----------------------------------------------------------
P_Search = ""
if not P_Sex = "" then
P_Search = "Sex='" + Sex + "'"
end if
if not Learning= "" then
if P_Search = "" then
P_Search= "Learning='" + Learning +"'"
else
P_Search = " AND Learning='" + Learning + "'"
end if
end if
°è¼Ó ÀÌ·±½ÄÀ¸·Î Çؼ WHERE Àý¿¡ ¿Ã Á¶°ÇÀ» »ý¼ºÇسÀ´Ï´Ù.
±×¸®°í ¸¶Áö¸·¿¡
if P_Search = "" then
V_Sql = "SELECT * FROM usertb"
else
V_Sql = "SELECT * FROM usertb WHERE" & P_Search
end if
ÀÌ·±½ÄÀ¸·Î ÇÏ½Ã¸é ¿øÇÏ´Â °á°ú¸¦ ¾òÀ¸½Ç ¼ö ÀÖÀ»°ÍÀÔ´Ï´Ù.
Å×½ºÆ®¸¦ ¾ÈÇØ ºÁ¼ ±¸¹®»ó¿¡ ¿À·ù°¡ ÀÖÀ» ¼ö ÀÖÀ¸´Ï ±×°Ç ¾Ë¾Æ¼... ^^;
±×·³....
|
|
|
|