- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
iSQL*Plus 目标 通过本章学习,您将可以: 在查询中使用变量。 熟悉 iSQL*Plus 环境。 非管理员登录方式 1.启动服务器上的Http server 2. 通过浏览器访问http服务器 3.访问isqlplus http://localhost:7778/isqlplus 输入用户名口令等信息就可以登陆到数据库,并执行SQL语句及脚本文件 变量 变量 在变量名前加前缀 () 使用户输入值。 变量 字符和日期型变量 在子符和日期两端加单引号。 指定列名、表达式和文本 使用变量可以提供下面的内容: WHERE 条件 ORDER BY 子句 列表达式 表名 整个 SELECT 语句 指定列名、表达式和文本 7-* Copyright ? Oracle Corporation, 2001. All rights reserved. 7 Copyright ? Oracle Corporation, 2001. All rights reserved. I want to query different values. ... salary = ? … … department_id = ? … ... last_name = ? ... User SELECT employee_id, last_name, salary, department_id FROM employees WHERE employee_id = employee_num ; 1 2 101 SELECT last_name, department_id, salary*12 FROM employees WHERE job_id = job_title ; SELECT employee_id, last_name, job_id, column_name FROM employees WHERE condition ORDER BY order_column ; Schedule: Timing Topic 35 minutes Lecture 35 minutes Practice 70 minutes Total Lesson Aim In this lesson, you will learn how to include iSQL*Plus commands to produce more readable SQL output. You can create a command file containing a WHERE clause to restrict the rows displayed. To change the condition each time the command file is run, you use substitution variables. Substitution variables can replace values in the WHERE clause, a text string, and even a column or a table name. Substitution Variables The examples so far have been hard-coded. In a finished application, the user would trigger the report, and the report would run without further prompting. The range of data would be predetermined by the fixed WHERE clause in the iSQL*Plus script file. Using iSQL*Plus, you can create reports that prompt the user to supply their own values to restrict the range of data returned by using substitution variables. You can embed substitution variables in a command file or in a single SQL statement. A variable can be thought of as a container in which the values are temporarily stored. When the state
您可能关注的文档
- 05-06(二)派车单.doc
- 05-09高考默写及易错字20100528.ppt
- 04距离测量与直线定向.ppt
- 05-3参数变量函数的导数.doc
- 05-中层管理者的三大内伤.pptx
- 05 逻辑代数.ppt
- 05-2物理量的单位和量纲.ppt
- 05 小结—选区与颜色lsm.ppt
- 05-1日新又新我常新.ppt
- 05.2012-2013年北京市石景山初三数学第一学期期末试题及答案.doc
- 2012-2021北京重点校高一(下)期中语文汇编:词类活用.pdf
- 电力市场与经济运行优化:电力市场优化算法_(28).电力市场中的市场力分析.docx
- 医院培训课件:《俯卧位通气的护理》.pptx
- 电力市场与经济运行优化:电力系统能效优化方法_(1).电力市场基础理论.docx
- 电力市场与经济运行优化:电力系统能效优化方法_(9).电力系统运行与能效优化.docx
- 电力市场与经济运行优化:电力系统能效优化方法_(15).电力市场与环境影响分析.docx
- 电力市场与经济运行优化:电力系统优化调度_(1).电力市场基础与原理.docx
- 电力市场与经济运行优化:电力系统优化调度_(14).电力市场改革政策与影响.docx
- 电力市场与经济运行优化:电力系统运行优化_(4).电力系统运行基础.docx
- 2025年航运行业分析.docx
文档评论(0)