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 |
What does a pl/sql package consist of?
How do I use google cloud in sql?
Whis is not false in primary key?
Can we use the cursor's to create the collection in PL/SQL?
What is identity column in sql server?
Explain correlated query work?
What happens if a procedure that updates a column of table X is called in a database trigger of the same table ?
What is integrity constraints?
Can We write bulk collect statement in triggers?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
How did you export data from database to excel file.
scope of exception handling in plsql