oracle - Split string into tokens in pl sql -


how can parse string tokens in pl/sql?

for example, string:

170823-14785 

and parsing want is:

17 08 23 -1 47 85 

as see, want replace consecutive 2 chars, following space symbol

if so, this: (no pl/sql needed this)

select regexp_replace('170823-14785', '(.{2})', '\1 ') dual; 

Comments

Popular posts from this blog

python - RuntimeError: can't re-enter readline -

python - PyInstaller UAC not working in onefile mode -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -