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 pl sql a programming language?
What are properties of the transaction?
Can we interchange parameters in procedure while calling
Which is faster joins or subqueries?
pl/sql testing means what ...... explain process how to find pl/sql bugs
Is sqlite good enough for production?
What is pl sql architecture?
Does it possible to pass object (or) table as an argument to a remote procedure?
how can you see all indexes defined for a table? : Sql dba
What are the types of dbms?
What are % type and % rowtype?
What is blind sql injection?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)