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

Help with replace()

Status
Not open for further replies.

SkyMasterBRA

Programmer
Nov 21, 2002
12
BR
I´d like to do this

replace(ps_cnt_txt_summary,'>','>' + CHAR(10) + CHAR(13))

where ps_cnt_txt_summary is a table column...is there any way to do this?

The command i need to do is something like this:

update ps_cnt_content set ps_cnt_txt_summary = replace(ps_cnt_txt_summary,'>','>' + CHAR(10) + CHAR(13))

Thanks in advance!
 
You can use the Update statement you posted if you have SQL 7 or higher and you are updating a CHAR, VARCHAR, NCHAR or NVARCHAR column. The REPLACE function was introduced to T-SQL in SQL 7. Terry L. Broadbent - DBA
SQL Server Page:
If you want to get the best answer for your question read faq183-874.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top