asp CintÒç³ö
VBSÀ³¬³öIntegerÀàÐ͵ÄÈ¡Öµ·¶Î§£¬¸ÃÀàÐ͵ÄÈ¡Öµ·¶Î§Îª-32,768 µ½ 32,767 Ö®¼äµÄÕûÊý¡£
³ö´íµÄ¸ùÔ´£º
ÔÚASPÀÓÐʱºòΪÁË·ÂÖ¹×¢È룬ËùÒÔÔÚ½ÓÊÕ²ÎÊýµÄʱºòÖ±½ÓʹÓÃCintº¯Êý°Ñ½Ó¹ýÀ´µÄ²ÎÊýת»»ÎªInteger£¨Êý×Ö£©ÀàÐÍ£¬Õâ¾Í´æÔÚÒ»¸öDZÔÚÎÊÌ⣬µ±Ò³Ãæ½ÓÊÕµÄij¸ö²ÎÊý£¨Request("xxx")£©³¬¹ýÈ¡Öµ·¶Î§Ê±£¨¿É¼òµ¥Àí½âΪ5λÊý×Ö£©£¬¾Í»á·¢Éú´Ë´íÎó¡£Õâ¸öÊÇÖ»Óгõ¼¶³ÌÐòÔ±»á·¶µÄ´íÎó¡£
VBSÀ³¬³öIntegerÀàÐ͵ÄÈ¡Öµ·¶Î§£¬¸ÃÀàÐ͵ÄÈ¡Öµ·¶Î§Îª-32,768 µ½ 32,767 Ö®¼äµÄÕûÊý¡£
cint·¶Î§ -32,768 µ½ 32,767¡£ £¨5λÕûÊý£©
clng·¶Î§ -2,147,483,648 µ½ 2,147,483,647¡£
CCur·¶Î§ -922,337,203,685,477.5808 µ½ 922,337,203,685,477.5807£¨15λÊý£©
½â¾ö°ì·¨£º
ÓÐÁ½¸ö·½°¸£º
Ò»£¬¿ìËÙ½â¾ö·½°¸£¬´ò¿ª³ö´íµÄÒ³Ã棬°ÑËùÓеÄCintº¯Êý»»ÎªCCurº¯Êý£¨Óøö×Ö·ûÌæ»»Èí¼þ£¬°ÑCint»»ÎªCCur£©¡£×ª»»ºó£¬È¡Öµ·¶Î§½«´Ó-32,768 µ½ 32,767 £¨5λÕûÊý£©ÌáÉýµ½-922,337,203,685,477.5808 µ½ 922,337,203,685,477.5807£¨15λÊý£©£¬µ«´Ë·¨Ò²ÓÐDZÔÚÎÊÌ⣬Èç¹û½ÓÊÕÊýÖµ³¬¹ý15룬ÄÇÒ²»áÒç³ö£¬²»¹ýÈç¹ûÖ»ÊÇ´¦ÀíID×ֶΣ¨Èç¹ûÊý¾Ý¿âÀïÓУ¬¶øÇÒ³ö´íµÄÊÇÕâ¸ö£©£¬ÄÇô¿ÉÒÔ·ÅÐÄ£¬Êý¾ÝÒª´ïµ½15λÊý»¹ÊÇÐèÒªºÜ³¤Ê±¼äµÄ¡£
¶þ£¬ÍêÃÀ½â¾ö·½°¸£¬²»ÒªÔÙʹÓÃCint¡¢CCur¡¢ClngÒ»ÀàµÄת»»º¯Êý£¬¶øÓ¦¸ÃʹÓÃIsNumeric º¯ÊýÀ´½øÐÐÅжϣ¬´Ë·¨ÐèÒªÓÐÒ»¶¨µÄ±à³ÌÄÜÁ¦Ê±Ðк¯ÊýÐ޸ġ£
Ïà¹ØÎĵµ£º
º¯Êý Óï·¨ ¹¦ÄÜ
Len Len(string|varname) ·µ»Ø×Ö·û´®ÄÚ×Ö·ûµÄÊýÄ¿£¬»òÊÇ´æ´¢Ò»±äÁ¿ËùÐèµÄ×Ö½ÚÊý¡£
Trim Trim(string) ½«×Ö·û´®Ç°ºóµÄ¿Õ¸ñÈ¥µô
Ltrim Ltrim(string) ½«×Ö·û´®Ç°ÃæµÄ¿Õ¸ñÈ¥µô
Rtrim Rtrim(string) ½«×Ö·û´®ºóÃæµÄ¿Õ¸ñÈ¥µô
Mid Mid(string,start,length) ´Óstring×Ö·û´®µÄstart×Ö·û¿ªÊ¼È¡µÃlength³¤¶ ......
Çë¿´ÈçÏÂÔ´´úÂ룺
<%
'ÏòÊý¾Ý¿âдÈëÊý¾Ý
SUB writeData()
dim recCnt,i
dim fieldName1,fieldName2,fieldName3
dim conn
dim sqlStr,connStr
connStr="Provider=SQLOLEDB.1;Initial Catalog=myDatabase;Data Source=myhon;User Id=sa;PASSWORD="
set conn=Server.CreateObject("ADODB.Connection")
c ......
ÔÚÎÒ¿ª·¢BS½á¹¹³ÌÐòÖУ¬ÓÉÓÚ¾³£ÐèÒªÔÚORACLEÖд¦ÀíһЩÈÝÁ¿½Ï´óµÄÎı¾Êý¾Ý£¬ËùÒÔ¾¹ý·´¸´²âÊÔÖÕÓÚÓÃASP³É¹¦½â
¾öÁË´óÎı¾Êý¾ÝÔÚORACLEÏ´æÈ¡ÎÊÌâ¡£
¡¡¡¡
¡¡¡¡Ò»¡¢ÔËÐл·¾³£º
¡¡¡¡1¡¢Microsoft Windows 2000 Server + IIS 5.0
2¡¢Oracle8iÖÐÎıê×¼°æ
¡¡¡¡
¡¡¡¡¶þ¡¢½¨Á¢Êý¾Ý±í£º
¡¡¡¡CREATE TABLE SYSTEM.TEST(
B ......
<input name="total" type="text" value="<%=webcounter%>" size="12" onbeforepaste="clipboarddata.setdata('text',clipboarddata.getdata('text').replace(/[^\d]/g,''))"
onkeydown="subOnKeyDown()"
onkeyup="value=value.replace(/[^\d]/g,'')"/>
ʹÓúó Èç¹ûÊäÈëΪ·ÇÊý×Ö ......
1. ASPÁ¬½ÓAccessÊý¾Ý¿âÓï¾ä
Set Conn=Server.CreateObject("ADODB.Connection")
Connstr="DBQ="+server.mappath("www/bbs.mdb")+";DefaultDir=;DRIVER={Microsoft
AccessDriver(*.mdb)};"
Conn.Open connstr
ÆäÖÐSet Conn=Server.CreateObject("ADODB.Connection")Ϊ½¨Á¢Ò»¸ö·ÃÎÊÊý¾ÝµÄ¶ÔÏó
server.mappath("w ......