Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

OPEN SQL (SELECT DATA)

Former Member
0 Kudos

Hi, everybody!

Recent i found a few code but i don't know this mean of code. fllows as.

SELECT BMATNR BWERKS E~MTARP AS MTART

CSPART DMAKTX

APPENDING CORRESPONDING FIELDS

OF TABLE LT_PMAT

FROM STPO AS A

INNER JOIN MAST AS B

ON BSTLNR = ASTLNR

INNER JOIN MARA AS C

ON CMATNR = BMATNR

INNER JOIN MARC AS E

ON EMATNR = BMATNR

AND EWERKS = BWERKS

LEFT OUTER JOIN MAKT AS D

ON DMATNR = BMATNR

AND D~SPRAS = C_E

FOR ALL ENTRIES IN LT_CMAT

WHERE A~STLTY EQ C_M "Material Bom

AND A~IDNRK EQ LT_CMAT-MATNR

AND B~WERKS IN R_WERKS

AND B~STLAN IN R_STLAN

AND B~STLAL IN R_STLAL

%_HINTS ORACLE

'LEADING(T_00) USE_NL(T_00 T_01 T_02 T_03 T_04)'.

look bold-face!

I don't know what is "%" and code of last-line !

Please help me!

Thanks Advanced!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Using HINT means we are forcing the database table to follow the specified path..

3 REPLIES 3

former_member222860
Active Contributor
0 Kudos

Some related thread

Former Member
0 Kudos

%_HINTS ORACLE means you are giving hints/instructions to oracle database, for the sole purpose of database optimization.

The DB optimizer follows certain rules to decided use of index, buffer etc. %_HINTS overrides it by giving specific instruction to oracle.

See OSS Note 129385 for furthur information on using %_HINTS

Former Member
0 Kudos

Hi,

Using HINT means we are forcing the database table to follow the specified path..