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

Does sql view stored data?

528


What is cross join example?

545


Why we use cross join?

536


Can we use ddl statements in stored procedure sql server?

510


How do temporal tables work?

514






Can a table have no primary key?

547


What are the different sql languages?

534


How to make a copy values from one column to another in sql?

568


Is subquery faster than join?

567


What is the difference between a database and a relational database?

558


Write a sql query to get the third highest salary of an employee from employee_table?

629


Where is pl sql used?

512


What is insert command in sql?

522


Show code of a cursor for loop.

578


What are the advantages of pl sql?

595