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

ORACLE PL/SQLÓëSQL SERVER T SQLһЩ±È½Ï

ORACLE PL/SQLÓëSQL SERVER T-SQLһЩ±È½Ï
×Ö·û´®Á¬½Ó
OracleÓÃ|| ·ûºÅ×÷ΪÁ¬½Ó·û£¬¶øSQL ServerµÄÁ¬½Ó·ûÊǼӺţº+ ¡£
Oracle²éѯÈçÏÂËùʾ£ºSelect ‘Name’ || ‘Last Name’ from tableName
SQL Server²éѯÈçÏ£ºSelect ‘Name’ + ‘Last Name’
GUID
OracleÓÃSYS_GUID()Éú³ÉGUID£¬²»º¬{}ºÍ-£»getregguidstring Éú³É GUID º¬{}ºÍ-£»
SQL ServerÓÃNEWIDÉú³ÉGUID£» 
Êý×ÖÈ¡Éá
OracleÊý¾Ý¿âÄÚÓÐÒ»¸öTRUNCº¯Êý£¬¸Ãº¯Êý·µ»Ømλʮ½øÖÆÊýµÄnλ£»Èç¹ûÊ¡ÂÔmÔòn¾ÍÊÇ0λ¡£mµÄÖµ¿ÉÒÔΪ¸º£¬±íʾ½ØȥСÊýµã×ó±ßmλÊý×Ö¡£
ÔÚSQL ServerÏ¿ÉÒÔÓÃRound»òÕßFloor¡£
Oracle²éѯÈçÏÂËùʾ£ºSELECT  TRUNC(15.79,1) "Truncate" from DUAL;
SQL Server²éѯÈçÏ£ºSELECT ROUND(15.79, 0) rounded , ROUND(15.79, 0,1) truncated
                                      SELECT FLOOR(ROUND(15.79, 0)), FLOOR(ROUND(15.79, 0,1) )
Êý×Öת»»
OracleµÄTO_CHARº¯Êý¿ÉÒÔ°ÑnλNUMBERÊý¾ÝÀàÐÍת»»ÎªVARCHAR2 Êý¾ÝÀàÐÍ£¬Í¬Ê±²ÉÓÿÉÑ¡µÄÊý×Ö¸ñʽ¡£
SQL ServerÔòͨ¹ýSTRº¯Êý·µ»ØÊý×Öת»»Ö®ºóµÄ×Ö·ûÊý¾Ý¡£²»¹ý£¬¸Ãº¯Êý²»¾ß·½±ãµÄFormat²ÎÊý¡£
Oracle²éѯÈçÏÂËùʾ£ºSELECT to_char(123.45 ,99999999999999) from tab
                                      SELECT to_char(EXPIRY_DATE,'DDMONYYYY') from tab
SQL Server²éѯÈçÏ£ºSELECT STR(123.45, 14)
                                      SELECT STR(round(123.455 , 2),12,2)
                         


Ïà¹ØÎĵµ£º

oracleÃüÁî ÊÕ²Ø

  oracleÃüÁî ÊÕ²Ø
1. ORACLEÊý¾Ý¿âÆô¶¯Óë¹Ø±Õ
1.1 ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â (ÊÖ¹¤)
1.1.1 sqlplusÁ¬½Ó
  #su - oracle
#sqlplus  /nolog
1.1.2 ´ò¿ªÊý¾Ý¿â
sql> connect sys/oracle as sysdba;
  sql> startup [nomount|mount]
µÈ´ýÊ®¼¸Ãë×óÓÒ£¬µ±¿´µ½
oracle instances started,
databa ......

oracle 10g °²×°Íê³Éºó,ÎÞ·¨µÇ½EMµÄ½â¾ö°ì·¨


 
 oracle 10g
°²×°Íê³Éºó,
怫EM
ÊäÈëϵͳÓû§ÃûºÍÃÜÂëºÍÊý¾Ý¿âÓû§ÃûºÍÃÜÂëºó,
µãÆô¶¯±¨´í,
¿ÉÄÜÊÇÒòΪÊý¾Ý¿âµÄ״̬ΪװÔØ»ò²»×°ÔØ,
ʼÖÕÎÞ·¨µÇ½½øEM
µÄ½â¾ö°ì·¨......
×´¿ö£º
´ò¿ªhttp://ty-:5500/em
£¬ÏµÍ³ÏÔʾÈçÏÂÐÅÏ¢£º
Êý¾Ý¿â״̬µ±Ç°²»¿ÉÓ᣿ÉÄÜÊÇÒòΪÊý¾Ý¿âµÄ״̬ΪװÔØ»ò²»×°ÔØ¡£µ¥»÷ ......

linq to sql ÖеÄin ²Ù×÷ʵÏÖ


        string s = " 80,81,83,82";
        string[] s1 = s.Split(',');
        int[] p = new int[s1.Count()];
        for (int i = 0; i < s1.Count( ......

ÔÚSQL ServerÖÐÈçºÎÊä³öÐкÅ


Ô­ÎĵØÖ·£ºhttp://www.dingos.cn/index.php?topic=1688.0
OracleÓÐrownumÓÃÓÚ·ÃÎʱíÖÐÐкš£ÄÇôÔÚSQL ServerÖÐÊÇ·ñÓеÈЧµÄÄØ£¿»òÕßÔÚSQL ServerÖÐÈçºÎÊä³öÐкţ¿
-----------------------------------
ÔÚSQL ServerÖÐûÓÐÖ±½ÓµÈЧÓÚOracleµÄrownum
-----------------------------------
Ñϸñ˵À´£¬ÔÚ¹ØϵÊý¾Ý¿âÖУ ......

sqlÐÐÁл¥×ª(תÌû)

--ÐÐÁл¥×ª
/******************************************************************************************************************************************************
ÒÔѧÉú³É¼¨ÎªÀý×Ó£¬±È½ÏÐÎÏóÒ׶®
ÕûÀíÈË£ºÖйú·ç(Roy)
ÈÕÆÚ:2008.06.06
***************************************************************** ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ