i have a word
***********hello********world******.
I require a o/p
**********hello world**********,
Need to delete the middle stars.
Answers were Sorted based on User's Feedback
Answer / chandan kumar
select (substr('***********hello********world******',1,instr
('***********hello********world******','o',1) )
||' '||substr('***********hello********world******',instr
('***********hello********world******','w',1) )
)
from dual
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / ajit
select '******hello*****world*******' str,
rpad(lpad(replace('******hello*****world*******', '*'), 15, '*'), 20,'*') str1
from dual;
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / mkarthikeyan
select replace('word ***********hello********world******. I
require a o/p **********hello world**********','*','') from
dual;
Is This Answer Correct ? | 1 Yes | 9 No |
Is inner join same as self join?
HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM
How does one use sql*loader to load images, sound clips and documents? : aql loader
Which normal form is best?
Can we create a trigger on view?
What is the difference between a query and a report?
How many subqueries can be nested in a statement?
What is a database link?
Why do we use procedures in pl sql?
Can you alter start with clause?
What is the purpose of design view?
What is the use of sql trace?