I have an Employee table with a Description column. In the description column I have text <br />. Now I need to replace this text with text <br>.
<br />
<br>
Is there any way to change the value in the column itself?
Update Employee Set Description = Replace(Description , '<br />','<br>') Where IDColumn = RecordIdValue
You can omit the sentence whereif you want to update ALL rows in the table.
where
Use REPLACEwith UPDATE:
REPLACE
UPDATE
UPDATE EMployee SET Description = REPLACE(Description, 'find this text', 'replacement')
Source: https://habr.com/ru/post/1795425/More articles:How can I get latitude and longitude "x" meter from latitude and longitude? - c #Why an enumeration instead of a static bool? - c ++How to implement a circuit from an XML schema using Java with a database - javaconnecting to sql server through winnet win.net application - c #release from SVN using "export" and then? how to update? - svnReflection and WCF - reflectionJava: How does URLConnection handle a completed TCP connection? - javaHow to limit export formats in crystal reports - crystal-reportsAndroid PipedOutputStream/PipedInputStream передают байты байтом, кажется неправильным - javaPHP why are there exceptions from different classes? ex: PDOException vs Exception? - phpAll Articles