Suppose There is a string
A.B....C.......D.........E........F In this string dots (.)
are not having fixed count in between of string. I want the
output to have string with one dot between. I.e.
A.B.C.D.E.F

Answer Posted / sreenivasulu sangatipalli

SELECT regexp_replace('A...B..C.D......E....F', '[.]+', '.') FROM DUAL;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sql*plus also have a pl/sql engine?

563


What is primary key secondary key alternate key candidate key?

546


Why is the cursor important?

543


What is left join example?

504


How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000

1644






Which data type is a composite type?

532


What are the various levels of constraints?

666


What is the purpose of primary key?

533


What is materialized view in sql?

465


Can we alter stored procedure?

545


What is parallel hint?

750


how to enter characters as hex numbers? : Sql dba

574


Can we use having without group by in sql?

553


Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql

531


What is sql scripting?

563