` Replacing characters in columns (Rick Martin) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

SQL Related Articles: Replacing characters in columns
2004-01-29 -- Rick Martin
 
Newsgroups: softvelocity.clarion.databasedrivers >Maybe a bit off the Clarion topic, but I had a situation where I >wanted to do an update on a mysql table and on one column, replace >certain characters (replace + with a space). > >It looked logical to do something like: > >Update mytable > set mycolumn = select Replace(mycolumn, '+',' ') > >But it didn't like that. After messing with this a bit, I decided to >write a little process in Clarion to take care of this. But I'm >curious how this could be accomplished directly in SQL just for future >reference. Anyone have ideas? Hi Arnor, I don't know if MYSQL syntax is different than MSSQ, but this works for me. Update Engineer Set Name = Replace(Name,'Martin','Martini') I don't think you need the 'Select' part in your example. HTH, Rick Martin Sharpe Software, Inc


Today is April 27, 2024, 8:11 pm
This article has been viewed 35104 times.
Google search has resulted in 44 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: