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

Changing part of text

Status
Not open for further replies.

YOUNGCODGER

Programmer
Jul 9, 2007
102
GB

Although I started with pre-SQL databases just over quarter of a century ago I having been using SQL via Informix/Oracle/Ingess for a long while. I have now inherited a MySql server and database. One database table makes use of a text field, each entry corresponding to about a sheet of A4. The problem I have is that whilst I could easily change something like a surname or post code field here I have to change small sections (circa 13 - 20 characters) in the middle of huge chunks of text. I am having to use a basic ascii terminal session onto a Linux box which probably does not help.
 
If you are doing this on a regular basis, I think you may find that a programming language may be a better approach.

Otherwise attempting to change a section of text within a large text field using only SQL commands is going to be extremely complex.

With that said, if you must use MYSQL commands, take a look at the Regular Expression support, it may help you in isolating the text you need to change.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top