Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8807

Re: Difference between SELECT INTO CORRESPONDING and SELECT INTO(f1, f2…)?

$
0
0

Hi

 

you have changed the firs selection, haven't you?

 

If it's so you have to consider the option INTO CORRESPONDING FIELDS OF TABLE ....: in this case the SELECT doesn't need to close by ENDSE;ECT



So this selection:


SELECT

  DB~F1

  DB~F2

  DB~F3

 

FROM DB1 JOIN DB2 ON .....

INTO CORRESPONDING FIELDS OF TABLE ITAB

WHERE (SELECT_CONDITIONS) .

 

should be re-written:

 

SELECT

  DB~F1

  DB~F2

  DB~F3

 

FROM DB1 JOIN DB2 ON .....

INTO (ITAB-F1. ITAB-F2, ITAB-F3)

WHERE (SELECT_CONDITIONS)

 

    APPEND ITAB. <------------------------------------

 

ENDSELECT..      <-----------------------------------


Viewing all articles
Browse latest Browse all 8807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>