Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: SPLT FUNCTION IN HANA SQL

$
0
0

Hi Vellore,

 

Don't know what's going on but your post appears to me always with more than 1 space.

Vellore Vasudeva Rao wrote:

 

My HANA SQL

    SELECT a.vbeln, a.posnr,

SUBSTR_AFTER(a.atwtb,'  ') AS  COLUMN1 ----- 2 spaces

                   from : it_vc_config as a

                   where a.atinn'0000001737' );

 

I tried using   

           -> SUBSTR_AFTER(a.atwtb,'  ')     ----- 2 spaces

          -> SUBSTR_AFTER(a.atwtb,'   ')     ----- 3 spaces

           -> SUBSTR_AFTER(a.atwtb,'    ')   ----- 4 spaces

 

Also used the  variable approach..

 

 

declare v_space    varchar(1) :='   ';       ----- 3 spaces

 

 

 

Regards, Fernando Da Rós


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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