MySQL - SQL programming

Associate
Joined
28 Jan 2005
Posts
1,124
Good morning all.

Looking at tidying up a telephone_no field, removing any chars that are not numbers (i.e any (), spaces, letters etc) The field is varchar.

I have been looking at various string functions, just woundered if anyone had any code snippets i might find useful?

Kind regards,

Martin
 
not really sure on MySQL as i us MSSQL, but there should be some inbuilt functions to do what you need.

Have a google for 'trim', 'mid', 'replace' and 'isnumeric'
 
Back
Top Bottom