`
timewind
  • 浏览: 15103 次
社区版块
存档分类
最新评论

查询的问题

阅读更多

SELECT OID asoid,

ACCIDENT_NAME asaccidentName,

ACCIDENT_TIME as accidentTime,

ACCIDENT_TYPE as accidentType,

DEATHS as deaths,

MINOR_INJURIES as minorInjuries,

DIRCT_FINANCIAL_LOSS as dirctFinancialLoss,

PROCESSING_RESULTS as processingResults,

(select Dept_Name from SYS_ORGANIZATIONAL a

where to_char(a.OID) =UNITNAME) AS unitName,

(select Dept_Name from SYS_ORGANIZATIONAL a

whereto_char(a.OID)=ACCIDENT_REPORT_UNIT) AS accidentReportUnit,

(select EMPLOYEE_NAME from SYS_EMPLOYEE a

where to_char(a.OID) =CREATETOR) AS creator

fromPMI_SAFE_ACCIDENT

一直不能运行成功,找到原因:oid设置成char类型

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics