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

SQLÖ®°Ë Êý¾Ý¿â¸ÅÀÀ

Êý¾Ý¿âÀàÐÍ
================================
1¡¢ ²ã´ÎÐͺÍÍø×´ÐÍ£º
´ú±í²úÆ·ÊÇ1969ÄêIBM¹«Ë¾ÑÐÖƵIJã´ÎÄ£ÐÍÊý¾Ý¿â¹ÜÀíϵͳIMS¡£
2¡¢ ¹ØϵÐÍÊý¾ÝÐͿ⣺
Ä¿Ç°´ó²¿·ÖÊý¾Ý¿â²ÉÓõÄÊǹØϵÐÍÊý¾Ý¿â¡£1970ÄêIBM¹«Ë¾µÄÑо¿Ô±E£®F£®CoddÌá³öÁ˹ØϵģÐÍ¡£Æä´ú±í²úƷΪsysem RºÍInges¡£
3¡¢ µÚÈý´úÊý¾Ý¿â½«Îª¸ü¼Ó·á¸»µÄÊý¾ÝÄ£Ðͺ͸üÇ¿´óµÄÊý¾Ý¹ÜÀí¹¦ÄÜΪÌØÕ÷£¬ÒÔÌṩ´«Í³Êý¾Ý¿âϵͳÄÑÒÔÖ§³ÖµÄÐÂÓ¦Óá£Ëü±ØÐëÖ§³ÖÃæÏò¶ÔÏ󣬾ßÓпª·ÅÐÔ£¬Äܹ»ÔÚ¶à¸öƽ̨ÉÏʹÓᣠҲ¾ÍÊÇͨ³£Ëù˵µÄÃæÏò¶ÔÏóÐÍÊý¾Ý¿â¡£
1£®¹ØϵÐÍÊý¾Ý¿âµÄ¸ÅÄî
Ëùν¹ØϵÐÍÊý¾Ý¿â£¬ÊÇÖ¸²ÉÓÃÁ˹ØϵģÐÍÀ´×éÖ¯Êý¾ÝµÄÊý¾Ý¿â¡£¹ØϵģÐÍÊÇÔÚ1970ÄêÓÉIBMµÄÑо¿Ô±E.F.Codd²©Ê¿Ê×ÏÈÌá³ö£¬ÔÚÖ®ºóµÄ¼¸Ê®ÄêÖУ¬¹ØϵģÐ͵ĸÅÄîµÃµ½Á˳ä·ÖµÄ·¢Õ¹²¢Öð½¥³ÉΪÊý¾Ý¿â¼Ü¹¹µÄÖ÷Á÷Ä£ÐÍ¡£¼òµ¥À´Ëµ£¬¹ØϵģÐÍÖ¸µÄ¾ÍÊǶþά±í¸ñÄ£ÐÍ£¬¶øÒ»¸ö¹ØϵÐÍÊý¾Ý¿â¾ÍÊÇÓɶþά±í¼°ÆäÖ®¼äµÄÁªÏµ×é³ÉµÄÒ»¸öÊý¾Ý×éÖ¯¡£ÏÂÃæÁгöÁ˹ØϵģÐÍÖеij£ÓøÅÄî¡£
¹Øϵ£º¿ÉÒÔÀí½âΪһÕŶþά±í£¬Ã¿¸ö¹Øϵ¶¼¾ßÓÐÒ»¸ö¹ØϵÃû£¬¾ÍÊÇͨ³£ËµµÄ±íÃû¡£
Ôª×飺¿ÉÒÔÀí½âΪ¶þά±íÖеÄÒ»ÐУ¬ÔÚÊý¾Ý¿âÖо­³£±»³ÆΪ¼Ç¼¡£
ÊôÐÔ£º¿ÉÒÔÀí½âΪ¶þά±íÖеÄÒ»ÁУ¬ÔÚÊý¾Ý¿âÖо­³£±»³ÆΪ×ֶΡ£
Óò£ºÊôÐÔµÄÈ¡Öµ·¶Î§£¬Ò²¾ÍÊÇÊý¾Ý¿âÖÐijһÁеÄÈ¡ÖµÏÞÖÆ¡£
¹Ø¼ü×Ö£ºÒ»×é¿ÉÒÔΨһ±êʶԪ×éµÄÊôÐÔ¡£Êý¾Ý¿âÖг£³ÆΪÖ÷¼ü£¬ÓÉÒ»¸ö»ò¶à¸öÁÐ×é³É¡£
¹Øϵģʽ£ºÖ¸¶Ô¹ØϵµÄÃèÊö£¬Æä¸ñʽΪ£º¹ØϵÃû£¨ÊôÐÔ1£¬ÊôÐÔ2£¬…£¬ÊôÐÔN£©¡£ÔÚÊý¾Ý¿âÖÐͨ³£³ÆΪ±í½á¹¹¡£
2£®¹ØϵÐÍÊý¾Ý¿âµÄÓŵã
¹ØϵÐÍÊý¾Ý¿âÏà±ÈÆäËûÄ£Ð͵ÄÊý¾Ý¿â¶øÑÔ£¬ÓÐ×ÅÒÔÏÂÓŵ㣺
ÈÝÒ×Àí½â£º¶þά±í½á¹¹ÊǷdz£Ìù½üÂß¼­ÊÀ½çµÄÒ»¸ö¸ÅÄ¹ØϵģÐÍÏà¶ÔÍø×´¡¢²ã´ÎµÈÆäËûÄ£ÐÍÀ´Ëµ¸üÈÝÒ×Àí½â¡£
ʹÓ÷½±ã£ºÍ¨ÓõÄSQLÓïÑÔʹµÃ²Ù×÷¹ØϵÐÍÊý¾Ý¿â·Ç³£·½±ã£¬³ÌÐòÔ±ÉõÖÁÓÚÊý¾Ý¹ÜÀíÔ±¿ÉÒÔ·½±ãµØÔÚÂß¼­²ãÃæ²Ù×÷Êý¾Ý¿â£¬¶øÍêÈ«²»±ØÀí½âÆäµ×²ãʵÏÖ¡£
Ò×ÓÚά»¤£º·á¸»µÄÍêÕûÐÔ£¨ÊµÌåÍêÕûÐÔ¡¢²ÎÕÕÍêÕûÐÔºÍÓû§¶¨ÒåµÄÍêÕûÐÔ£©´ó´ó½µµÍÁËÊý¾ÝÈßÓàºÍÊý¾Ý²»Ò»ÖµĸÅÂÊ¡£
½ü¼¸ÄêÀ´£¬·Ç¹ØϵÐÍÊý¾Ý¿âÔÚÀíÂÛÉϵõ½ÁË·É¿ìµÄ·¢Õ¹£¬ÀýÈ磺Íø×´Ä£ÐÍ¡¢¶ÔÏóÄ£ÐÍ¡¢°ë½á¹¹»¯Ä£Ð͵ȡ£Íø×´Ä£ÐÍÓµÓÐÐÔÄܽϸߵÄÓŵ㣬ͨ³£Ó¦ÓÃÔÚ¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄϵͳÖУ»¶ÔÏóÄ£ÐÍ·ûºÏÃæÏò¶ÔÏóÓ¦ÓóÌÐòµÄ˼Ï룬¿ÉÒÔÍêÃÀµØºÍ³ÌÐòÏνӣ¬¶ø²»ÐèÒªÁíÍâµÄÖмäת»»×é¼þ£¬ÀýÈçÏÖÔںܶàµÄO\R Mapping×é¼þ£»°ë½á¹¹»¯Ä£ÐÍËæ×ÅXMLµÄ·¢Õ¹¶øµÃµ½·¢Õ¹£¬ÏÖÔÚÒѾ­ÓÐÁ˺ܶà°ë½á¹¹»¯µÄÊý¾


Ïà¹ØÎĵµ£º

python·ÃÎÊ sql server

½ñÌìÊÔÑéʹÓÃpythonÁ¬½Ó sql server ·þÎñÆ÷¡£ÎҼǵÃÒÔǰʹÓÃadoÁ¬½Óaccess·Ç³£Ë³Àû£¬µ«ÊǽñÌìʹÓÃadoÁ¬½Ósql server¾¹È»²»³É¹¦¡£ÔÚpythonÀïÃæµÄ³ö´íÐÅÏ¢¶¼ÏÔʾΪתÒÆÐòÁУ¬·ÑÁË°ëÌì¾¢²Å¸ãÃ÷°×£ºÎÞЧµÄÀà±ð×Ö·û´®¡£
ÊÇÁ¬½Ó×Ö·û´®Â𣿲âÊÔÁ˺ü¸¸ö È·ÈÏÎÞÎóµÄÊý¾Ý¿âÁ¬½Ó×Ö·û´®£¬Ò²ÊÇÈç´Ë ¡£ÉÏÍøËÑË÷£¬ÊÇÓпÉÄÜÊÇ comµÄÀà±ð×Ö ......

sql server ¹ØÓÚ Êý¾Ý»ã×Ü·ÖÎö

CUBE ºÍ ROLLUP Ö®¼äµÄÇø±ðÔÚÓÚ£º
CUBE Éú³ÉµÄ½á¹û¼¯ÏÔʾÁËËùÑ¡ÁÐÖÐÖµµÄËùÓÐ×éºÏµÄ¾ÛºÏ¡£
ROLLUP Éú³ÉµÄ½á¹û¼¯ÏÔʾÁËËùÑ¡ÁÐÖÐÖµµÄijһ²ã´Î½á¹¹µÄ¾ÛºÏ¡£
Àý×Ó£º
  if object_id('a')  is not null
drop table a
create table a
(
  bm varchar(20),  --±àÂë
  ck varchar(2), &n ......

SQL»ñȡʱ¼äº¯Êý

DATEDIFF(²ÎÊýÒ»,²ÎÊý¶þ,²ÎÊýÈý) ---²ÎÊýÒ»£ºyear month day; ²ÎÊý¶þ£º±È½ÏµÄÆðʼÈÕÆÚ,ĬÈÏ1900-1-1£»²ÎÊýÈý£º±È½ÏµÄÈÕÆÚ¡£
eg:DATEDIFF(year,0,getdate())±íʾ±È½Ï0£¨Ä¬ÈÏ1900-1-1£©µ½µ±Ç°µÄÈÕÆÚÏë²î¼¸Äê
 SELECT DATEADD(mm, DATEDIFF(mm,0,getdate()), 0)  -- È¡µÃ±¾ÔµĵÚÒ»Ìì
 SELECT DATEADD(wk, D ......

javaÀàÖÐдsqlÓï¾ä£¬²éѯÌõ¼þ°üº¬»»ÐÐ

detachedCriteria.add(Restrictions.or(
       Restrictions.like("chengBanDanWeiIds", rForm.getChengBanDanWeiIds()+(char)13, MatchMode.START),
       Restrictions.or(
          &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ