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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Oracle table with a period (.)

Status
Not open for further replies.

barnard90

IS-IT--Management
Mar 6, 2005
73
US
I have an employee table with Employee names

All the Employees are supposed to end with a Full Stop (.)

The data should be like

Empno Empname
-----------------------

101 John Williams.
102 Tracy Roberts.
103 Alice Hilton
104 Joseph Fowler.


But there are some records which are not ended with a Full stop

How do I a write an update query in Oracle to convert all the records to end with a Full Stop(.)

Thanks
 

Try:
Code:
Update EMP
   Set Empname = Empname||'.'
 Where SUBSTR(Empname,-1,1) != '.';
[3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top