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

¸ü¸ÄSQL ServerĬÈϵÄ1433¶Ë¿Ú

1.SqlServer·þÎñʹÓÃÁ½¸ö¶Ë¿Ú£ºTCP-1433¡¢UDP-1434¡£ÆäÖÐ1433ÓÃÓÚ¹©SqlServer¶ÔÍâÌṩ·þÎñ£¬1434ÓÃÓÚÏòÇëÇóÕß·µ»ØSqlServerʹÓÃÁËÄǸöTCP/IP¶Ë¿Ú¡£
¿ÉÒÔʹÓÃSQL ServerµÄÆóÒµ¹ÜÀíÆ÷¸ü¸ÄSqlServerµÄĬÈÏTCP¶Ë¿Ú¡£·½·¨ÈçÏ£º
a¡¢´ò¿ªÆóÒµ¹ÜÀíÆ÷£¬ÒÀ´ÎÑ¡Ôñ×ó²à¹¤¾ßÀ¸µÄ“Microsoft SQL Servers - SQL Server×锣¬´ò¿ª“SQLʵÀý”£¨Êµ¼Ê»·¾³ÖÐΪҪÐ޸ĵÄSQL Server·þÎñÆ÷Ãû³Æ£©µÄÊôÐÔ¶Ô»°¿ò£¬µã»÷“³£¹æ”Ñ¡ÏµÄ×îÏ·½µÄ“ÍøÂçÅäÖã¨N£©”°´Å¥£¬¾Í¿ÉÒÔ´ò¿ª“SQL Server ÍøÂçʹÓù¤¾ß”¶Ô»°¿ò¡£
b¡¢ÔÚ“ÆôÓõÄЭÒé”ÁбíÀïÓÐTCP/IPЭÒ飬ÔÚÊôÐÔÀïµÄĬÈ϶˿ÚÑ¡ÏîÖÐÊäÈëÒªÐ޸ĵĶ˿ںż´¿ÉÐ޸ġ£»¹ÓÐÒ»ÏîΪÒþ²Ø·þÎñÆ÷£¬Èç¹ûÑ¡ÖÐÔò±íʾ×Å¿Í»§¶ËÎÞ·¨Í¨¹ýö¾Ù·þÎñÆ÷À´¿´µ½Õą̂·þÎñÆ÷£¬Æðµ½±£»¤µÄ×÷Ó㬶øÇÒ²»Ó°ÏìÁ¬½Ó¡£
2.SqlAgent·þÎñʹÓÃTCP-1625¡¢TCP-1640¶Ë¿ÚÌṩ·þÎñ¡£
3.SQL ²éѯ·ÖÎöÆ÷£¬Í¨¹ý1601¶Ë¿Ú·ÃÎÊ1433£¬Á¬½ÓSqlServer 


Ïà¹ØÎĵµ£º

SQL Server

²éѯ card µÄ¼Ç¼ΪÁ½´ÎÒÔÉ쵀 card£¬¼Ç¼Êý:
select count(card), card from TableName group by card having count(card) > 1
¼¶Áª¸üУ¬¼¶ÁªÉ¾³ý:
ColumnName type not null constraint FK_Name foreign key(ColumnName) references PrimaryTable(ColumnName) on update/delete cascade
×Ô¶¯¼ÆËãÁÐ:
create tabl ......

criteria µÄÓï¾ä¼ÓSQLÓï¾äÒ»Æð²éѯ

   if(query.getIsScrapAlert()!=null&&query.getIsScrapAlert()==1){
   //criteria.add(Expression.sql(" add_months(this_.D_RECEIVE_DATE,this_.N_DEPRECIABLE_LIFE*12)<add_months(sysdate,-3) "));
   criteria.add(Expression.sql(" ((add_months(this_. ......

liq to sql union

Union All/Union/Intersect²Ù×÷
ÊÊÓó¡¾°£º¶ÔÁ½¸ö¼¯ºÏµÄ´¦Àí£¬ÀýÈç×·¼Ó¡¢ºÏ²¢¡¢È¡ÏàͬÏî¡¢ÏཻÏîµÈµÈ¡£
Concat£¨Á¬½Ó£©
˵Ã÷£ºÁ¬½Ó²»Í¬µÄ¼¯ºÏ£¬²»»á×Ô¶¯¹ýÂËÏàͬÏÑÓ³Ù¡£
1.¼òµ¥ÐÎʽ£º
var q = (
from c in db.Customers
select c.Phone
).Concat(
from c in db.Customers
......

oralce sqlÓÅ»¯34Ìõ

ÎÒÃÇÒª×öµ½²»µ«»áдSQL,»¹Òª×öµ½Ð´³öÐÔÄÜÓÅÁ¼µÄSQL,ÒÔÏÂΪ±ÊÕßѧϰ¡¢ÕªÂ¼¡¢²¢»ã×ܲ¿·Ö×ÊÁÏÓë´ó¼Ò·ÖÏí£¡
£¨1£©      Ñ¡Ôñ×îÓÐЧÂʵıíÃû˳Ðò(Ö»ÔÚ»ùÓÚ¹æÔòµÄÓÅ»¯Æ÷ÖÐÓÐЧ)£º
ORACLE µÄ½âÎöÆ÷°´ÕÕ´ÓÓÒµ½×óµÄ˳Ðò´¦Àífrom×Ó¾äÖеıíÃû£¬from×Ó¾äÖÐдÔÚ×îºóµÄ±í(»ù´¡±í driving table)½«±»×îÏÈ´¦Àí£¬ÔÚfrom× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ