´óÁ¬Ä³ÍøÂçÓÎÏ··þÎñÆ÷ £¨SQL SERVER 2008£© ÐÞ¸´³É¹¦
¿Í»§Ãû³Æ
´óÁ¬Ä³ÍøÂçÓÎÏ··þÎñÆ÷ £¨SQL SERVER 2008£© ÐÞ¸´³É¹¦
Êý¾Ý¿â°æ±¾
SQL SERVER 2008
Îļþ´óС
5G
¹ÊÕÏÃèÊö
¿Í»§µÄÓÎÏ··þÎñÆ÷ÓÃSQL SERVER 2008,Êý¾Ý¿â²»Ã÷ÔÒò±¨´íÎó,˵ÎÞ·¨·ÃÎÊ,¿Í»§¶ÔʵʱÊý¾Ý¿âÎļþ½øÐÐÁ˸´ÖÆ,×Ô¼ºÓÃÁËN¶à·½·¨½øÐÐÐÞ¸´,Ó²ÅÌÊý¾Ý»Ö¸´,¶¼Î´³É¹¦,×îºóÕÒµ½ÎÒÃÇ,ÉòÑô¿ÎÄÊý¾Ý»Ö¸´ÖÐÐijɹ¦½«Æä100%ÐÞ¸´³É¹¦.
Êý¾ÝËð»µÔÒò
²»Ïê
½â¾ö·½°¸
ÉòÑô¿Îľ¹ýçÇÃÜ·ÖÎö,²ÉÓÃרҵËã·¨³É¹¦½«¿Í»§Êý¾Ý¿âÐÞ¸´,µÃµ½¿Í»§ºÃÆÀ.
ÐÞ¸´½á¹û
100%»Ö¸´,Êܵ½¿Í»§ºÃÆÀ.
»Ö¸´ËùÓÃʱ¼ä
4Сʱ
±¸ ×¢
¡¡
¡¡
Ïà¹ØµÄÖ÷ÌâÎÄÕ£º
µ¤¶«ÊÐÍÁµØÕ÷ÓÃÊÕ¹º´¢±¸ÖÐÐÄ WDÓ²Å̲»ÈÏÅÌ Êý¾Ý»Ö¸´³É¹¦
ÉòÑôÊÐijÓÐÏÞ¹«Ë¾ ½ðµûK3 SQL SERVERÊý¾Ý¿â Êý¾Ý»Ö¸´
Ïà¹ØÎĵµ£º
¼¸¸ö¼òµ¥µÄ»ù±¾µÄsqlÓï¾ä
Ñ¡Ôñ£ºselect * from table1 where ·¶Î§
²åÈ룺insert into table1(field1,field2) values(value1,value2)
ɾ³ý£ºdelete from table1 where ·¶Î§
¸üУºupdate table1 set field1=value1 where ·¶Î§
²éÕÒ£ºselect * from table1 where field1 like ’%value1%’
ÅÅÐò£ ......
ÔÚOracle SQLÖÐÈ¡Êý¾ÝʱÓÐʱҪÓõ½in ºÍ exists ÄÇôËûÃÇÓÐÊ²Ã´Çø±ðÄØ£¿
1 ÐÔÄÜÉϵıȽÏ
±ÈÈçSelect * from T1 where x in ( select y from T2 )
Ö´ÐеĹý³ÌÏ൱ÓÚ:
select *
from t1, ( select distinct y from t2 ) t2
where t1.x = t2.y;
숦﵀
select * from t1 where exists ( select null fro ......
ÉÏÒ»½Ú½²ÊöµÄÊÇɾ³ý²Ù×÷£¬±¾½Ú½«½²ÊöÈçºÎÖ±½ÓÖ´ÐÐsqlÓï¾ä¡£ Ö±½ÓÖ´ÐÐsqlÓï¾äÊÇʹÓÃfromSql·½·¨¡£ DbSession.Default.fromSql("select * from products").ToDataTable();
ÕâÑù¿´ÆðÀ´Ç×ÇжàÁ˰ɣ¬Ö±½Ósql¾Í¿ÉÒÔÖ´ÐС£
µ±È»Ò²¿ÉÌí¼Ó²ÎÊýµÄ°¡¡£
DbSession.Default.fromSql("select * ......
sqlserverµÄ¼¸¸öº¯ÊýÒª¼Ç¼
½ñÈÕÅöµ½¸öÎÊÌ⣺ҪʵÏÖÊý¾Ý±íÖеÄÒ»¸ö×Ö¶ÎÖеÄÎı¾Îª"xxx.gif"µÄת»»Îª"xxx.jpg",ÎÒ²»ÖªµÀÆä¾ßÌåÃû³Æ£¬Ö»ÖªµÀÊÇÒÔgif½áβ¡£
ÎÊÌâ½â¾ö£ºupdate pet set petPhoto=substring(petPhoto,1,datalength(petPhoto)-3)+'jpg' where petPhoto like '%.gif'
×¢ÒâÆ¥Åä·û£º“%& ......
ÔÚSQLÓï¾äÓÅ»¯¹ý³ÌÖУ¬ÎÒÃǾ³£»áÓõ½hint,ÏÖ×ܽáÒ»ÏÂÔÚSQLÓÅ»¯¹ý³ÌÖг£¼ûOracle HINTµÄÓ÷¨£º
1. /*+ALL_ROWS*/
±íÃ÷¶ÔÓï¾ä¿éÑ¡Ôñ»ùÓÚ¿ªÏúµÄÓÅ»¯·½·¨,²¢»ñµÃ×î¼ÑÍÌÍÂÁ¿,ʹ×ÊÔ´ÏûºÄ×îС»¯.
ÀýÈç:
SELECT /*+ALL+_ROWS*/ EMP_NO,EMP_NAM,DAT_IN from BSEMPMS WHERE EMP_NO='SCOTT';
2. /*+FIRST_ROWS*/
±íÃ÷¶ÔÓï¾ä¿éÑ ......