How do I register my begging of each contact country code

Hi all

I telephone contacts in a table with 13000 records, I would like to update and include the code of my country (968) at the beginning of each phone number.

the length of our phone numbers are 8 charracter excluding countries. as a typical phone number is less than

92752155

I want to register 968 to begging

96892752155

problem is that some numbers are short 8 characters, some have since a long time then 8 characters (erroneous data entry).

I want to update only those numbers which have 8 length of character and do not have the 968 in begging.

How I do that?

I use oracle 10g on windows server 2003.

Thank you.

You can add another condition not like this:

Update your_table set your_phone_num = '968' | your_phone_num

where ((your_phone_num) length = 8 and your_phone_num not like 968 %');

See you soon,.

Manik.

Tags: Database

Similar Questions

Maybe you are looking for