Problem: A column 'Names' contains following values:
'Nitin'
'Ashok'
'Sanjeev'
Write a SQL to break these values into individual characters.
Solution:
select names,
substr(names,level,1) ch
from
(
select 'Nitin' names from dual
union all
select 'Ashok' names from dual
union all
select 'Sanjeev' names from dual
)
connect by prior names=names
and level<=length(names)
AND prior DBMS_RANDOM.STRING ('p',10) IS NOT NULL
tnsping and instant client revisited
-
You enjoyed my old trick with
https://laurentschneider.com/wordpress/2012/11/tnsping-and-instant-client.html
? you will love this one ❤️ sqlplus -s /nolog ...
3 days ago

No comments:
Post a Comment