Sign in to follow this  
Paulo Valentim

Retirando A Quebra De Linha

Recommended Posts

alguém sabe com retirar a quebra de linha de um varchar

tipo:

DECLARE @STR AS VARCHAR(500)

SET @STR = 'Salvador ·

Terça-feira 10 de abril de 2007 Ano XCI · No 19.383'

para ficar assim:

SET @STR = 'Salvador · Terça-feira 10 de abril de 2007 Ano XCI · No 19.383'

Obrigado a todos

Share this post


Link to post
Share on other sites

Camarada,

Acho que tá a solcução:

DECLARE @STR AS VARCHAR(500)
SET @STR = 'Salvador · 
Terça-feira  10 de abril de 2007  Ano XCI · No 19.383'

SELECT REPLACE(@STR,CHAR(13) + Char(10) ,' ')

Dúvidas é só se manifestar.

t+

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this