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

SQL Server ¸ÄΪORACLEµÄÓï·¨ - Oracle / ¿ª·¢

select ID as '²¿ÃűàºÅ', Department as '²¿ÃÅÃû³Æ', 
  [Õýʽ] = Sum ( case when EmployeeType = ' Õýʽ ' then Cnt else 0 end ),
  [ÁÙʱ] = Sum ( case when EmployeeType = ' ÁÙʱ ' then Cnt else 0 end ), 
  [´ÇÍË] = Sum ( case when EmployeeType = ' ´ÇÍË ' then Cnt else 0 end ),
  [ºÏ¼Æ] = Sum ( case when EmployeeType <> '' then Cnt else 0 end ) 
from VDepartmentEmployeeType group by ID, Department

ÉÏÃæµÄsqlÊÇsqlserverµÄ£¬ÊǸö±íµÄÐÐÁÐת»»
[Õýʽ] = Sum (...)£¬¸Ä³ÉoracleÓ¦¸ÃÔõÃ´Ð´ÄØ£¿
select ID as '²¿ÃűàºÅ', Department as '²¿ÃÅÃû³Æ', 
  Sum ( case when EmployeeType = ' Õýʽ ' then Cnt else 0 end ) Õýʽ,
  Sum ( case when EmployeeType = ' ÁÙʱ ' then Cnt else 0 end ) ÁÙʱ , 
  Sum ( case when EmployeeType = ' ´ÇÍË ' then Cnt else 0 end ) ´ÇÍË,
  Sum ( case when EmployeeType <> '' then Cnt else 0 end ) ºÏ¼Æ 
from VDepartmentEmployeeType group by ID, Department

Õâ¸ö
SQL code:
select ID ²¿ÃűàºÅ, Department ²¿ÃÅÃû³Æ,
Sum ( case when EmployeeType = ' Õýʽ ' then Cnt else 0 end ) Õýʽ,
Sum ( case when EmployeeType = ' ÁÙʱ ' then Cnt else 0 end ) ÁÙʱ ,
Sum ( case when EmployeeType = ' ´ÇÍË ' then Cnt else 0 end ) ´ÇÍË,
Sum ( case when EmployeeType <> '' then Cnt else 0 end


Ïà¹ØÎÊ´ð£º

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

Çë½ÌsqlÓï¾ä¡£ - Oracle / ¿ª·¢

ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
  ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......

Windows 7 ÔõÑù°²×°Oracle - Oracle / »ù´¡ºÍ¹ÜÀí

¸÷λ´ó¸ç£¬°ï¸öæ¡£

ϸöOracle for vista °æ±¾µÄ°²×°ÊÔÊÔ
10GºÍ11GµÄ 
http://www.oracle.com/technology/software/products/database/index.html 
------------------------------------------- ......

oracle 9i ×î½ü·¢Ïֵǽ±¨´í - Oracle / »ù´¡ºÍ¹ÜÀí

ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
  ORA-01034:ORACLE not available
  ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡

1. Oracle sid ÕýÈ ......

Çë½ÌSQLSERVERµÄÁ½¸öÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

1¡£ÔõÑùʹxp_cmdshellÄÜÍêÕûÊä³ö³¬¹ý255¸ö×Ö·ûµÄ×Ö·û´®¡£
2¡£select ʱ£¬¼ìË÷ËÙ¶ÈÊÇÓëfromºóµÄ TABLE˳ÐòÓйأ¬»¹ÊÇÓëwhereÌõ¼þµÄ˳ÐòÓйØ(TABLEÊý¾Ý¶àÉÙ )
ÔÚϵͳÊôÐÔÉ趨ÀïÓиöÑ¡Ïî,¿ÉÒÔÐ޸ĵ¥×Ö¶ÎÊä³ö×ÖÊýÏÞÖÆ. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ