Shared Top Border

Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Home arrow Tips and Tricks arrow ABAP Reports arrow Specify field values without gaps
Specify field values without gaps PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Anon.   
Friday, 09 March 2007
Example: A database table dbtable1 has an index on field1, field2, and field3.

SELECT fieldn INTO v_fieldn

FROM dbtable1

WHERE field1 = value1

     AND field2 = value2

     AND field3 = value3

The database can use index on field1, field2 and field3.

 

SELECT fieldn INTO v_fieldn

FROM dbtable1

WHERE field1 = value1

      AND field3 = value3

The database can only use index on field1.

 

 

Example:    The optimizer can be forced to use the index.

 SELECT fieldn INTO v_fieldn

FROM dbtable1

WHERE field1 = value1

      AND field2 >= ‘’

      AND field3 = value3.

 


Related Items:

 
< Prev   Next >

Google Search

Google Ads

Shared Bottom Border

Contact Us | Polls | Add URL | Contribute | Privacy | Terms | Feedback

Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job
Financials Consultant | Consultant Review | Gallia Consulting | Supply Chain Project | SAP Financials Forum
GenieHoldings.COM, Inc. | Genie Press | WorkflowGenie | ESAGenie | ERPTopSites | ABAP Tips and Tricks | SAP Solutions Database

EDIGenie | Searching Survivor