11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Case Insensitive Query property<br />

Description<br />

Determines whether the operator can perform case-insensitive queries on the text item.<br />

Applies to text item<br />

Set <strong>Form</strong> <strong>Builder</strong>, programmatically<br />

Refer to Built-in<br />

• GET_ITEM_PROPERTY<br />

• SET_ITEM_PROPERTY<br />

Default<br />

No<br />

Usage Notes<br />

Case-insensitive queries are optimized to take advantage of an index. For example, assume you perform<br />

the following steps:<br />

• Create an index on the EMP table.<br />

• Set the Case Insensitive Query property on ENAME to Yes.<br />

• In Enter Query mode, enter the name ’BLAKE’ into :ENAME.<br />

• Execute the query.<br />

<strong>Form</strong> <strong>Builder</strong> constructs the following statement:<br />

SELECT * FROM EMP WHERE UPPER(ENAME) = ’BLAKE’ AND<br />

(ENAME LIKE ’Bl%’ OR ENAME LIKE ’bL%’ OR<br />

ENAME LIKE ’BL%’ OR ENAME LIKE ’bl%’);<br />

The last part of the WHERE clause is performed first, making use of the index. Once the database finds<br />

an entry that begins with bl, it checks the UPPER(ENAME) = ’BLAKE’ part of the statement, and makes<br />

the exact match.<br />

Case Insensitive Query restrictions<br />

If you set this property to Yes, queries may take longer to execute.<br />

583

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!