MSSQLÇ¿ÖÆʹÓÃindex
×¢£º±¾ÆªÖ»ÊǼǼËùÅöµ½µÄÎÊÌâ¡£
×î½ü¶Ô³ÌÐò×öÁËһЩÐÔÄÜÉϵÄÓÅ»¯£¬¼¯ÖÐÔÚsqlÉÏ¡£·¢ÏÖÁËÒ»¸öÎÊÌâ¡£
ͬһ¸öÓï¾ä£¬Èç¹ûËÑË÷µÄ·¶Î§Ð¡£¬ÏµÍ³×Ô¶¯Ê¹ÓÃindex¡£Èç¹ûËÑË÷µÄ·¶Î§´ó£¬ÏµÍ³²»ÖªµÀΪʲô·ÅÆúʹÓÃindex¡£¸ÄÓÃscan table¡£
ÕâÑùºÜÓ°ÏìÐÔÄÜ¡£Ôì³ÉµÄÔÒò²»ÊǺÜÇå³þ¡£Èç¹ûÖªµÀÅóÓÑ¿ÉÒÔÁôÑÔ¸øÎÒ£¬Ö¸½Ìһϡ£
ΪÁ˽â¾öÕâ¸öÎÊÌ⣬ÎÒÖ»ÓÐÔÚsqlÓï¾äÉÏÇ¿ÖÆʹÓÃijµÄindex¡£ Àý×ÓÈçÏÂ
Select ..... from products with (index(indexname)) where .....
Ïà¹ØÎĵµ£º
Ms sql 2000
drivername=com.microsoft.jdbc.sqlserver.SQLServerDriver
url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=books
username=sa
password=sa
MySQL
drivername=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/books
username=root
password=root
Oracle
drivername=orac ......
SQL Server ÌṩϵͳÊý¾ÝÀàÐͼ¯£¬¶¨ÒåÁË¿ÉÓë SQL Server Ò»ÆðʹÓõÄËùÓÐÊý¾ÝÀàÐÍ¡£ÏÂÃæÁгöϵͳÌṩµÄÊý¾ÝÀàÐͼ¯¡£
¿ÉÒÔ¶¨ÒåÓû§¶¨ÒåµÄÊý¾ÝÀàÐÍ£¬ÆäÊÇϵͳÌṩµÄÊý¾ÝÀàÐ͵ıðÃû¡£ÓйØÓû§¶¨ÒåµÄÊý¾ÝÀàÐ͵ĸü¶àÐÅÏ¢£¬Çë²Î¼û sp_addtype ºÍ´´½¨Óû§¶¨ÒåµÄÊý¾ÝÀàÐÍ¡£
µ±Á½¸ö¾ßÓв»Í¬Êý¾ÝÀàÐÍ¡¢ÅÅÐò¹æÔò¡¢¾«¶È¡¢Ð¡ÊýλÊý»ò³ ......
1
¡¢
MSSQL
Êý¾Ý¿âµÄ¶¨ÆÚ×Ô¶¯±¸·Ý¼Æ»®
ͨ¹ýÆóÒµ¹ÜÀíÆ÷
ÉèÖÃÊý¾Ý¿âµÄ¶¨ÆÚ×Ô¶¯±¸·Ý¼Æ»®¡£
1
¡¢´ò¿ªÆóÒµ¹Ü
ÀíÆ÷£¬Ë«»÷´ò¿ªÄãµÄ·þÎñÆ÷
2
¡¢È»ºóµãÉÏÃæ
²Ëµ¥ÖеŤ¾ß
-->
Ñ¡ÔñÊý¾Ý¿âά»¤¼Æ»®Æ÷
3
¡¢ÏÂÒ»²½Ñ¡ÔñÒª½øÐÐ×Ô¶¯±¸·ÝµÄÊý¾Ý
-->
ÏÂÒ»²½¸üÐÂÊý¾ÝÓÅ»¯ÐÅÏ¢£¬ÕâÀïÒ»°ã²»ÓÃ×öÑ¡Ôñ
-->
ÏÂÒ ......
@echo off
:dosmenu
REM Ñ¡Ôñ²Ëµ¥
echo Windows ·þÎñÆô¶¯»ò¹Ø±Õ By hope 2008Äê2ÔÂ7ÈÕ
echo.
echo [1]Æô¶¯Sql Server2005 [2]¹Ø±ÕSql Server2005
echo [3]Æô¶¯Oracle9i [4]¹Ø±ÕOracle9i
echo.
echo ......