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

ÈçºÎÔÚSQLÖÐÆôÓÃÈ«ÎļìË÷¹¦ÄÜ

ÈçºÎÔÚSQLÖÐÆôÓÃÈ«ÎļìË÷¹¦ÄÜ£¿
¡¡¡¡--------------------------------------------------------------------------------
¡¡¡¡È«ÎÄË÷ÒýµÄÒ»¸öÀý×Ó£¬ÔÚ²éѯ·ÖÎöÆ÷ÖÐʹÓãº
¡¡¡¡use pubs
¡¡¡¡go
¡¡¡¡--´ò¿ªÊý¾Ý¿âÈ«ÎÄË÷ÒýµÄÖ§³Ö
¡¡¡¡execute sp_fulltext_database 'enable'
¡¡¡¡go
¡¡¡¡--½¨Á¢È«ÎÄĿ¼ft_titles
¡¡¡¡execute sp_fulltext_catalog 'ft_titles', 'create'
¡¡¡¡go
¡¡¡¡--Ϊtitles±í½¨Á¢È«ÎÄË÷ÒýÊý¾ÝÔª£¬UPKCL_titleidindÊÇÖ÷¼üËù½¨Á¢µÄΨһË÷Òý£¬¿ÉÓÉsp_help titlesµÃÖª
¡¡¡¡execute sp_fulltext_table 'titles','create', 'ft_titles', 'UPKCL_titleidind'
¡¡¡¡go
¡¡¡¡--ÉèÖÃÈ«ÎÄË÷ÒýÁÐÃû
¡¡¡¡exec sp_fulltext_column 'titles', 'title', 'add'
¡¡¡¡go
¡¡¡¡exec sp_fulltext_column 'titles', 'notes', 'add'
¡¡¡¡go
¡¡¡¡--½¨Á¢È«ÎÄË÷Òý
¡¡¡¡exec sp_fulltext_table 'titles', 'activate'
¡¡¡¡go
¡¡¡¡--Ìî³äÈ«ÎÄË÷ÒýĿ¼
¡¡¡¡exec sp_fulltext_catalog 'ft_titles', 'start_full'
¡¡¡¡go
¡¡¡¡--ʹÓÃcontainsºÍfreetext
¡¡¡¡select title, notes from titles
¡¡¡¡where contains(title, '"computer Cooking"')
¡¡¡¡go
¡¡¡¡select title, notes from titles
¡¡¡¡where freetext(title, 'computer Cooking')
¡¡¡¡go
¡¡¡¡select title, notes from titles
¡¡¡¡where freetext(title, '"computer Cooking"')
¡¡¡¡go
¡¡¡¡select title, notes from titles
¡¡¡¡where contains(title, 'computer')
¡¡¡¡go
¡¡¡¡select title, notes from titles
¡¡¡¡where freetext (*, 'computer')
¡¡¡¡go
------------------------------------------------------------------------------------------------------
ʾÀý
SQL SERVERÊý¾Ý¿âÈ«ÎÄË÷ÒýµÄʾÀý£¬ÒÔpubsÊý¾Ý¿âΪÀý¡£
Ê×ÏÈ£¬½éÉÜÀûÓÃϵͳ´æ´¢¹ý³Ì´´½¨È«ÎÄË÷ÒýµÄ¾ßÌå²½Ö裺
1) Æô¶¯Êý¾Ý¿âµÄÈ«ÎÄ´¦Àí¹¦ÄÜ (sp_fulltext_database)
2) ½¨Á¢È«ÎÄĿ¼ (sp_fulltext_catalog)
3) ÔÚÈ«ÎÄĿ¼ÖÐ×¢²áÐèҪȫÎÄË÷ÒýµÄ±í (sp_fulltext_table)
4) Ö¸³ö±íÖÐÐèҪȫÎÄË÷ÒýµÄÁÐÃû (sp_fulltext_column)
5) Ϊ±í´´½¨È«ÎÄË÷Òý (sp_fulltext_table)
6) Ìî³äÈ«ÎÄĿ¼ (sp_fulltext_catalog)
---------********ʾÀý********-------------
ÒÔ¶ÔpubsÊý¾Ý¿âµÄtitleºÍnotesÁн¨Á¢È«ÎÄË÷Òý£¬Ö®ºóʹÓÃË÷Òý²éѯtitleÁлònotesÁÐÖаüº¬ÓÐdatebase »òcomputer×Ö·û´®µÄͼÊéÃ


Ïà¹ØÎĵµ£º

C#µ÷ÓÃSQL´æ´¢¹ý³ÌÒÔ¼°·µ»ØÖµºÍ²ÎÊýµÄ»ñÈ¡

QZone Editor
.dump{}

//TODO ÓòÃû
if (location.hash) {
document.domain=location.hash.substr(1);
}

//parent.qZEditor.callback();
function init(){
//»ñÈ¡±à¼­Æ÷Ãæ°åID
var pid = frameElement.panelID;

//»ñÈ¡±à¼­Æ÷Ãæ°å¶ÔÏó ......

sql server ÖеÄһЩʵÓõÄsqlÓï¾ä

¼ò½é
ÔÚÕâÆªÎÄÕÂÖУ¬ÎÒÁоÙһЩsqlÓï¾äÀ´½éÉÜÊý¾Ý¿â£¬Êý¾Ý±í£¬ÊÓͼµÈµÈ¡£µ±ÎÒÃÇÔÚʹÓòéѯ²éѯ²Ù×÷ʱÕâЩsqlÓï¾ä¶¼ÊǷdz£ÓÐÓõġ£ËäÈ»ÔÚsql server¶ÔÏóä¯ÀÀÆ÷ÖÐÎÒÃÇÒ²¿ÉÒÔ»ñµÃÕâЩÓï¾ä£¬µ«ÊÇÈç¹ûÎÒÃÇдÕâЩÓï¾äʱÎÒÃÇ¿ÉÒÔ½«Ëü×Ô¶¨Òå¡£Õâ¾ÍÒâζ×ÅÎÒÃÇ¿ÉÒÔ¸øÓè×Ô¼ºµÄÐèÇóÀ´¹ýÂ˽á¹û¡£
sqlÓï¾äÁбí
ÈçºÎÁоÙsql serverµ±Ç°Á ......

javaʱ¼äº¯Êý£¬ÒÔ¼° sql ʱ¼ä·¶Î§²éÕÒ ´úÂë

 String keyword = request.getParameter("keyword");
   String timeRange = request.getParameter("timeRange");
   String type = request.getParameter("type");
  
   StringBuffer sql = new StringBuffer();
   sql.append("use webstation_leadall s ......

MS SQL SERVER 2005È«ÎÄË÷Òý


MS SQL SERVER 2005È«ÎÄË÷Òýѧϰ±Ê¼ÇÒ»
      ÏÈÁ˽âÒ»ÏÂÈ«ÎÄË÷ÒýÊÇÈçºÎ´´½¨ºÍʹÓõÄ
      ´´½¨È«ÎÄË÷Òý:
      ÔÚMS SQL SERVER 2005Àï,È«ÎÄË÷ÒýÊÇÒ»¸öµ¥¶ÀµÄ·þÎñÏî,ĬÈÏÊÇÆô¶¯µÄ,µ«ÊÇûÓÐÔÊÐíÊý¾Ý¿âÆôÓÃÈ«ÎÄË÷Òý,Èç¹ûÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ