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

來源:互聯網
上載者:User

標籤:oracle   equal   count   ant   etc   select   indent   default   records   

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:
BeginGo_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 LSpecify one underscore for first any letter and then L% eg. _L%Result:Search only those records where Hire Date is greater than 01st Oct 2015Specify greater than sign and the date in single quotes:ResultSearch only those records where Salary is greater than 5000Specify greater than sign and the value eg. > 5000Results:Search only those where Job is equal to CLERK and Salary is less than 4000Specify 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.