Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

SQLServer IP¿â ²éѯIP²»Í¬ ËÙ¶ÈÏà²î¾Þ´ó ÇóÓÅ»¯Òâ¼û

ÕâÀïÑ¡ÓÃÁË´¿ÕæQQ IP¿â
°´ÕÕ´«Í³µÄ·½·¨ IPתΪdecimal
±ÈÈç
IP±í

IPStart      IPEnd      Address
-------------------------------------
994304000    994310143  ±±¾©
...          ...        ...
...          ...        ...

¼Ç¼Êý30Íò

°´ÕÕIPStart IPEnd ½¨¾Û¼¯Ë÷Òý ²éѯ·½Ê½Îª  SELECT Address from [IP] IPStart <=@IP And IPEnd>=@IP

¸ù¾Ý²éѯIP²»Í¬ ²éѯËÙ¶ÈÏà²î¿É´ïµ½10±¶ÒÔÉÏ (IPÕý³£ÖµµÄÇé¿öÏÂ)

Çë½Ì¸÷λÓÐʲôºÃµÄÓÅ»¯Òâ¼û?
Êý¾Ý¿â½á¹¹¿É¸ü¸Ä Ö»Çó×î¸ßЧÂÊ


ÒýÓÃ
ÏÈ°Ñ@IPתΪbigint£¬ÔÙ½øÐвéѯ£¬²»ÒªÔÚ²éѯÌõ¼þÖÐת»»IPµØÖ·
ÓÃÊý×Ö´æ´¢IPÓ¦¸ÃÊÇЧÂʱȽϸߵÄÒ»ÖÖ×ö·¨ÁË



Up


ÔÚ´æ儲µÄ時ºòŪ個計ËãÁÐ


ÒýÓÃ
ÕâÀïÑ¡ÓÃÁË´¿ÕæQQ IP¿â
°´ÕÕ´«Í³µÄ·½·¨ IPתΪdecimal
±ÈÈç
IP±í

IPStart      IPEnd      Address
-------------------------------------
994304000    994310143  ±±¾©
...          ...        ...
...          ...        ...

¼Ç¼Êý30Íò

°´ÕÕIPStart IPEnd ½¨¾Û¼¯Ë÷Òý ²éѯ·½Ê½Îª  SELECT Address from [IP] IPStart <=@IP And IPEnd&


Ïà¹ØÎÊ´ð£º

¹ØÓÚSQLSERVERµ×²ãÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÇëÎÊһϣ¬ÍâÍøÁ½Ì¨SQLSERVERʵÀýÊý¾Ý´«Ê䣬ÓÐûÓвÉÓÃÊý¾ÝѹËõºÍ¼ÓÃÜ¡£Ñ¹Ëõ±ÈÊǶàÉÙ£¬¼ÓÃÜÊÇʲô¼ÓÃÜËã·¨£¿Ïà¹ØÎĵµÄÄÀï¿ÉÒÔÕÒµ½£¿Ð»Ð»


ÎÒÒ²ÏëÖªµÀ£¡¹Ø×¢´ËÌù£¡

¹Ø×¢¡«¡«

Êý¾Ý¿â´óÅ£¶¼ÄÄÈ¥ÁË°¡£¿
......

sqlserver ÈÕÆÚÀàÐÍת»»

ÔÚÊý¾Ý¿âÖÐÈÕÆÚÈçÏÂÏÔʾ£º2009-2-27 9:40:47
Õâ¸ö²»ÊÇÎÒÏëÒªµÄ£¬ÎÒÐèÒªÔ·ݺÍʱ¼äÓÃÁ½Î»Êý±íʾ£¬ÉÏÃæµÄÓ¦¸Ãת»»Îª;2009-02-27 09:40:47
ÇëÎÊ
1¡¢ÈçºÎ¶ÔÏÖÓÐÈÕÆÚ½øÐÐת»»£¨Êý¾Ý¿âÖÐÒÑ´æÔÚÐí¶àÀàËƵÄÖµ£¬ÎÒÐèÒª½«Æä ......

SQLServer ϵͳÊÓͼÎÊÌâ

ÔÚŪһ¸öµ¼³öÊý¾Ý¿â¼Ü¹¹µÄС³ÌÐò  Óöµ½ÎÊÌâÁË  ÌØÀ´Çë½Ì£¡
ÎÒÏÖÔÚÏëͨ¹ýÒ»¸öÍâ¼üÃû×Ö  ȥϵͳ±íÀï²é³ö  Ö÷±íÃû£¬ ¸½±íÃû£¬  Ö÷±í±»ÒýÓÃ×ֶΣ¬  ¸½±íÒýÓÃ×ֶΠµÄÐÅÏ¢¡£¡£  Î ......

JDBCÁ¬½Ómicrosoft sqlserverÒªÔõôÁ¬°¡

ŪÁË°ëÌ춼»¹ÊÇŪ²»ºÃ£¬ÔÚÓÃmyeclipse¿ª·¢ÖÐÒªÔõôŪÄØ£¬
Ï£Íû˵˵¾ßÌå²½Öè

Ê×ÏÈÓ¦¸Ã°ÑÒì³£·ÅÉÏÀ´

Ò»°ãÈç¹ûÊÇÔÚXPϵͳÏÂ,×°ÉÏSP3»òSP4,´ò¿ª1433¶Ë¿Ú.....

netstat -an¿ÉÒԲ鿴ÊÇ·ñ´ò¿ªÁË1433¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ