oracle查询数据最后上传时间

select max(t.last_update_dtime) from BASEINFO t union all  --基本信息

select max(t.last_update_dtime) from OUTPATIENT t union all  --门诊摘要

select max(t.last_update_dtime) from OUTPATIENT_FEE t union all --门诊费用

select max(t.last_update_dtime) from OUTPATIENT_DRUG t union all --门诊用药

select max(t.last_update_dtime) from OUTPATIENT_DIAG t union all --门诊诊断信息

select max(t.last_update_dtime) from INPATIENT t union all --住院摘要

select max(t.last_update_dtime) from INPATIENT_FEE t union all --住院费用

select max(t.last_update_dtime) from INPATIENT_DRUG t union all --住院用药

select max(t.last_update_dtime) from INPATIENT_INDIAG t union all --住院诊断信息

select max(t.last_update_dtime) from DM_DIABETES2 t union all --糖尿病

select max(t.last_update_dtime) from DM_HYPER t union all --高血压

select max(t.last_update_dtime) from DM_SMI t union all --精神病

select max(t.last_update_dtime) from HEALTHEXAM_COMMUNITY_REG t --体检信息




select * from dw_dim_county t where t.dim_area='410100000000'--查询行政机构编码

select * from rhip_gov_division t where t.gd_p_code='410102000000'--查询机构村级编码

select * from dw_dim_orglist t where t.dim_county='410102000000' and t.dim_catalog='502006' --查询更新医疗机构总表

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1.简介 数据存储有哪些方式?电子表格,纸质文件,数据库。 那么究竟什么是关系型数据库? 目前对数据库的分类主要是...
    乔震阅读 5,859评论 0 2
  • (一)Oracle数据库 1.oracle中row_id理解 ORACLE的row_id是一个伪列,其个是为18个...
    独云阅读 10,948评论 0 10
  • 什么是SQL数据库: SQL是Structured Query Language(结构化查询语言)的缩写。SQL是...
    西贝巴巴阅读 5,851评论 0 10
  • 招聘面试会整整进行了一天的时间,宝玉他们才稍微地休息了一下,他们把前来应聘的人全部安排好,最后他们才发现他们已经连...
    可可豆子阅读 3,848评论 0 2