首页 > 数据库技术 > 详细

Enter Query Mode Search Tricks Using Enter_Query Built-in in Oracle Forms

时间:2016-12-25 01:48:55      阅读:332      评论:0      收藏:0      [点我收藏+]
In this post you will learn how to specify any condition in enter query mode of Oracle Forms. Whenever Enter_Query command executes Oracle Forms comes into enter query mode and in that mode you can specify some criteria to filter the records and after that when you execute query using Execute_Query command then the records would be fetched based on that condition you specified.

Enter_Query built-in usage example:
Begin
Go_Block(‘yourblock‘);
Enter_Query;
End;

The below is the screen shot from which records would be filtered in this example.
技术分享
Note you can specify the search condition only when Oracle Forms is in Enter Query Mode. The following are some search criteria examples:

Search only those records where Emp Name containing AR

Specify %AR% in Emp Name column to fetch the records where AR exists in Emp Name.
技术分享
Result:
技术分享

Search only those records where second letter of Emp Name is L

Specify one underscore for first any letter and then L% eg. _L%
技术分享
Result:
技术分享

Search only those records where Hire Date is greater than 01st Oct 2015

Specify greater than sign and the date in single quotes:
技术分享
Result
技术分享

Search only those records where Salary is greater than 5000

Specify greater than sign and the value eg. > 5000
技术分享
Results:
技术分享

Search only those where Job is equal to CLERK and Salary is less than 4000

Specify CLERK in job column and less than sign and the value in Salary column You can also specify = sign and value in single quote in Job column eg. =‘CLERK‘
技术分享
Result:
技术分享
 

Enter Query Mode Search Tricks Using Enter_Query Built-in in Oracle Forms

原文:http://www.cnblogs.com/quanweiru/p/6218890.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!