您的位置:首页 > 数据库 > Oracle

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

2016-12-25 00:42 1001 查看
[align=left] In this post you will learn how to specify any condition in enter query mode of Oracle Forms[/b]. 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.[/align]
Enter_Query built-in usage example:
Begin
Go_Block('yourblock');
Enter_Query;
End;


[align=justify]The below is the screen shot from which records would be filtered in this example.[/align]



[align=justify]Note you can specify the search condition only when Oracle Forms is in Enter Query Mode[/b]. The following are some search criteria examples:[/align]

Search only those records where Emp Name containing AR

[align=justify]Specify %AR% in Emp Name column to fetch the records where AR exists in Emp Name.[/align]



[align=justify]Result:[/align]



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

[align=justify]Specify one underscore for first any letter and then L% eg. _L%[/align]



[align=justify]Result:[/align]



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

[align=justify]Specify greater than sign and the date in single quotes:[/align]



[align=justify]Result[/align]



Search only those records where Salary is greater than 5000

[align=justify]Specify greater than sign and the value eg. > 5000[/align]



[align=justify]Results:[/align]



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

[align=justify]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' [/align]


Result:



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐