Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update a table with Junk Values 1

Status
Not open for further replies.

barnard90

IS-IT--Management
Mar 6, 2005
73
US
Hi

I have a employee table with Empno and Empname
The Empname has all Employee names like
John Smith,
Robert Jones
Alice Williams
.....etc

However , The names are preceeded by " and the Empnames are looking like

"John Smith
"Robert Jones
"Alice Williams
"Keith Fowler

How do I eliminate the " and get data in a normal way
Can someone please suggest an Update Query for table "EMPLOYEE"

Thanks
 
Hi,
Try:
Code:
Update EMPLOYEE set EMPNAME = REPLACE(EMPNAME,'"','')



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
iF YOU WANT TO GET RID OF THE FIRST CHARACTER IF IT IS A " THEN

Update employee
set empname = substr(empname,2)
where substr(empname,1,1) = '#';

If you want to get rid of ANY " then

update employee
set empname = replace(empname,'"');

Bill
Oracle DBA/Developer
New York State, USA
 
Beilstwh

Thanks a lot for your valuable post
It works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top