Problem : Divide a given string into individual characters and display these characters into separate rows through a SQL query. For example , the given string is 'Paper', display it as :
Given_String
--------
P
a
p
e
r
The query is :
select substr(&string,rownum,1) given_string
from all_objects
where rownum<=length(&string)
return code before grep
-
my 2009 solution return code before grep ( ( ( mycmd echo $? >&3 ) |grep
mytext >&4 ) 3>&1 |(read x;exit $x) )4>&1 my 2025 solution mycmd > >(grep
mytext)
2 weeks ago
No comments:
Post a Comment