- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Chapter 9 SQLPLUS REPORTS.ppt
Chapter 9 : SQL*PLUS REPORTS A SQL*Plus PROGRAM COMMAND File Interactive commands can be used to specify report headings, report footers, report titles, page numbers, and other common report features that managers tend to request. Unfortunately, if you exit SQL*Plus, all of the information about a reports features is lost unless you save your commands in a file. For this reason, we will also focus on creating files that will store SQL*Plus commands. Well refer to this type of file as a SQL*Plus program command file, or simply a SQL program. The filename extension used for these files is .sql. Example Following program gives a sample SQL*Plus program command file. This SQL program will produce the report shown in Figures 9.1a and 9.1b. All of the data for the report is selected from the assignment table of the Company database. The SQL program has numerous commands. Example REM Program: ch9-1.sql REM Programmer: dbock; 3-20-2003 REM Description: A program to list employee work history REM on projects. ? TTITLE Project Information BTITLE SKIP 1 CENTER Not for external dissemination. REPHEADER Project Report #1 –- prepared by D. Bock SKIP 2 REPFOOTER SKIP 3 -- Last Page of Report -- ? SET LINESIZE 55 SET PAGESIZE 24 SET NEWPAGE 1 ? Example Cont’d COLUMN Emp. Soc. Sec. # FORMAT A16 COLUMN Hours Worked FORMAT 999.99 SELECT work_emp_ssn Emp. Soc. Sec. #, work_pro_number Project #, work_hours Hours Worked FROM assignment ORDER BY work_emp_ssn, work_pro_number; The report produced is shown next. Sun Apr 14 page 1 Project Information ? Project Report #1 - prepared by D. Bock ? Emp. Soc. Sec. # Project # Hours Worked 999111111 1 31.40 999111111 2 8.50 999222222 10 34.50 999222222 30 5.10 999333333 3 42.10 999444444 1 999444444 2 12.20 999444444
您可能关注的文档
- 9. Code Scheduling for ILP-Processors.ppt
- 9. Computer Peripherals – Part I.ppt
- 9. L'efficienza e il controllo dei costi.ppt
- 9. Monopolistic Competition& Oligopoly.ppt
- 9. OOP & ADTs Introduction to Inheritance.ppt
- 9. SYSTEM INTEGRATION.ppt
- 9. TCPIP.ppt
- 9. Transformações de fases em metais e microestruturas.ppt
- 9.1 正弦波振荡电路的振荡条件.ppt
- 9.2 单项式与多项式相乘.ppt
- Chapter 9 – Designing Classes.ppt
- Chapter 9 –Cooperative Strategy.ppt
- Chapter 9 - Judicial Review.ppt
- Chapter 9 Are We Free or Determined.ppt
- Chapter 9 Balancing Demand and Productive Capacity.ppt
- Chapter 9 Building Bigger Programs.ppt
- Chapter 9 Cinema in an International Frame.ppt
- Chapter 9 Congress.ppt
- Chapter 9 continued Evolution and the Human Life Cycle.ppt
- Chapter 9 Global Inequalities and Poverty.ppt
最近下载
- 建筑工程图集 11SG814:建筑基坑支护结构构造.pdf VIP
- 电商平台客户投诉处理协调配合措施.docx VIP
- 快速心律失常的急诊处理PPT课件.ppt VIP
- 标准图集-新型城镇化-智能灯杆.pdf VIP
- 11SG814 建筑基坑支护结构图集.docx VIP
- 2024年11月江苏苏州市中医医院(西苑医院苏州医院)招聘编外人员笔试笔试历年专业考点(难、易错点)附带答案详解 .doc
- 广西壮族自治区家庭经济困难学生认定申请表.doc VIP
- 大闽食品(漳州)有限公司企业标准.doc VIP
- 施工企业安全生产事故报告及处理制度.docx VIP
- 电商平台纠纷处理与客服投诉管理方案.docx VIP
文档评论(0)