下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、日识别,联系 诊日识别,联系 诊4)YJ_YJK2(医技库,汇总表)性6)MZ_CFK2(处方库,汇总表)7)8)YH_YHK(挂号库)保存号mz_mzsfk1里 () mz_cfk1 mz_mzsfk2 sfsb (Yj_yjk1 mz_mzsfk2 sfsb Selectmz_cfk1wheresfsb=34 找到cfsb=17 Mz_cfk1 与 mz_cfk2 cfsb 关联 Selectyj_yjk1Selectmz_cfk1wheresfsb=34 找到cfsb=17 Mz_cfk1 与 mz_cfk2 cfsb 关联 Selectyj_yjk1wheresfsb=34 Yj_yj
2、k1yj_yjk2 yjsb Selectmz_yjk2(注意哦where )(2) 使用语句:createtablemz_cwrb1_0223ect*from1 where rbxh=27o mz_cwrb1 value (select * Deletemz_cwrb2whererbxh=27; 汇总日报(没做汇总日报前,mz_cwrb1中,hzrq 与hzgh 是空的交单判别)被置 1;在 mz_hzrb 里,汇总日报的日报序号会被置上 Deletemz_hzrb2whererbxh=1472; 做了挂号日报后,在gh_ghk中,rbrqgh_cwrbrbxh rbxhGh_cwrb gh
3、_cwrbmx rbxh Delete gh_cwrb where rbxh =11; commit; Deletegh_cwrbmxwhererbxh=11;commit;删除挂号日报后,将gh_ghkrbrq Gh_cwrb gh_cwrbmx rbxh Delete gh_cwrb where rbxh =11; commit; Deletegh_cwrbmxwhererbxh=11;commit;删除挂号日报后,将gh_ghkrbrq 答:退费的前提条件是 .对应的日报日期置空即可。Update mz_mzsfk1setrbrq=nullwhere sfsb=59票作废。作废完了,将r
4、brq 打了。Updatemz_mzsfk1setcdpb=nullwheresfsb=59;pilevasHIS00/HIS00oracleplsql develop procedureFUNCTION,pileselectdistinctalter|type|name|compile;fromuser_source; spool off; brxzdm(3条)改回原来的值。注:a。b 如; brxzdm(3条)改回原来的值。注:a。b 如 pile 好 答: 先找到 中的主键是 jlxh, 再使用语句 select max(jlxh) from gh_ghk; 发现max(jlxh)=43
5、43 再改大些就可以了update gh_ghk set jlxh=50 where jlxh=43(改的不是这个表,而应该是 GY_XHB)多地方报错,要用 tool 工具,顺便回忆下怎么用用) xjnumber(10,2).使用语句:altertablegh_ghkaddxjaltertablegh_ghkmodifyxj11. 新程序打开报错 表加进去。Create ,是否使用该张视图viewtalbegh_ghk,:个人日报结算方式:0-1-允许将几天之内的个人日报结算方式:0-1-允许将几天之内的 0-1-1-0-同时退费 1-0-否SQL语句总结: (这部分写的很好1.select
6、count(*),brlbfrommz_mzsfk1whereczgh=DBAandrbrqisnullgroupbybrlb andbrlb=13.updatemz_mzsfk1setrbrq=nullwhereto_char(rbrq,yyyymmmdd)=30000223 4.altertablegh_ghkaddxjnumber(10,2); 5.altertablegh_ghkmodifyxjnumber(12,2); 7.update where null 掉czgh=DBAandsfrqsysdate-1; 将操作工号为DBA8.select* from gh_ghk where
7、 to_char(ghrq,yyyymmdd)=20090223; 9.Selecta.xj,a.tcjjje,a.zfje,a.tcjjj,a.*frommz_mzsfk1awhere jzkh=1001123andrbrqisnull 的(如果要groupby group语句有:select*frommz_mzsfk1whereSelect*frommz_mzsfk2where 。Select语句有:select*frommz_mzsfk1whereSelect*frommz_mzsfk2where 。Select*frommz_mzsfk1wherejzkh=110112orderbySelect * from mz_mzsfk2 where sfsb in (Select sfsb from mz_mzsfk1 jzkh=110112)orderbySelectcount(*),brlbfrommz_mzsfk2whererbrqisnullandczgh=123;(写错了哦的;。selecta.xj,a.tcjjje,a.zfje,a.tcjjj,a.zje,a.ybje,a.*frommz_mzsfk1awheresfsbin(selectfrommz_mzsfk
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 《2024年 英文经典影片《阿甘正传》的教学设计》范文
- DB32-T 4828-2024 省级自然灾害应急救援基地建设规范
- 出版业数字化转型及市场推广策略
- 农产品电子商务平台用户体验优化方案实施
- 医学影像物理学智慧树知到答案2024年山西医科大学汾阳学院
- 垃圾场封场及渗滤液整治工程(技术方案)
- 花样年华8#楼施工组织设计
- IGBT贴片机市场现状动态分析与前景趋势预测报告模板
- 沁园春雪教案
- 写作之细节描写
- 2021预防艾梅乙培训班后试卷 及答案
- 汽油柴油危害告知牌【范本模板】
- 音乐-人音版(简谱)二年级上-第6课-四小天鹅舞曲-课件(18-张)
- 优化小学英语单元整体教学单元整体教学课件
- 幼儿园中班语言《谁会跑》微教案
- 戊戌变法 完整版课件
- 专用镗孔机床的电气控制系统设计
- 焊接气瓶管理安全风险辨识预控措施
- 五年级下学期 长方体和正方体 物体浸没问题专项应用题训练35题 带答案
- 雷达料位计技术协议
- 弹簧支架技术
评论
0/150
提交评论