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
Ïà¹ØÎÊ´ð£º
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
¸÷λ´ó¸ç£¬°ï¸öæ¡£
ϸöOracle for vista °æ±¾µÄ°²×°ÊÔÊÔ
10GºÍ11GµÄ
http://www.oracle.com/technology/software/products/database/index.html
------------------------------------------- ......
ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
ORA-01034:ORACLE not available
ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡
1. Oracle sid ÕýÈ ......
tab1 ×Ö¶Î:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 ×Ö¶Î:goodsid,goodskind£¨ÉÌÆ·ÀàÐÍ£©
tab3 ×Ö¶Î:goodskind£¨ÉÌÆ·ÀàÐÍ£©,kindname
½á¹û£º
µÃµ½ÉÌÆ·ÀàÐÍÔÚÒ»¶Îʱ¼ä ......
¿´µ½ÓÐÒ»¸öSUNµÄÔªÀÏ´ÓOracle¹«Ë¾´ÇÖ°£¬¶øÇÒÊÇJava´´Ê¼ÈË——´óÃû¶¦¶¦µÄJames Gosling£¬
ÐÄÖÐÏ൱ÊÜ´ò»÷£¡ºÜ±¯Í´£¡
OrableÕâÊÇÔõôÁË£¬ÄѵÀÕâ¾ÍÊÇËùνµÄÈںϣ¨Ö«½â£¬·Ö»¯£¬Ïûʧ£©Âð£¿
SUNµÄÒ»°ïÀÏÔ±¹¤¶ ......