Like shown below i have 3 columns(Name,No,Address). The
values in name column i want to modity.
Requirement : Keep only once space between two words
(Fname,Lname) in the Name column.
For this what is the query? Please answer me. Advance
Thanks.


Name No Address Reference

manoj kumar
kumar raja
vinzay kumar
rajendra prasad
gowri nath -- -- --

Answer Posted / kalyan

update test set NAME=regexp_replace(NAME,'( ){2,}', ' ')

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What port does sql server use?

610


Explain lock escalation? : Transact sql

789


What does a pl/sql package consist of?

606


Define sql delete statement.

657


How many times can we commit in a loop?

651






Why do we use sql constraints? Which constraints we can use while creating database in sql?

631


What are the types of records?

649


What is a heap in sql?

623


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

638


What is java sql package?

626


What is sql*loader and what is it used for? : aql loader

704


Name the different types of indexes in sql and define them.

668


What mean sql?

665


Is sql injection illegal?

684


What is restrict in sql?

639