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

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

747


What is the benefit of foreign key?

714


what is oracle database ? : Sql dba

737


What does pragma mean?

713


What is varray in pl sql?

762






How to pipe multiline string to isql?

758


What is pl sql block in dbms?

708


What does the hierarchical profiler does?

755


Define implicit and explicit cursors.

811


How do I add a primary key to a table?

747


Can a commit statement be executed as part of a trigger?

799


1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

2167


How many sql statements are used? Define them.

776


define sql insert statement ? : Sql dba

750


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

782