SQL文本中去空間去回車鍵的腳本

UPDATE ppeflow SET remark= LTRIM(RTRIM(REPLACE(CONVERT(NVARCHAR(4000),remark), CHAR (13)+CHAR (10),'')))
SELECT LTRIM(RTRIM(REPLACE(CONVERT(NVARCHAR(4000),remark), CHAR (13)+CHAR (10),''))),* FROM dbo.ppeflow WHERE pdctno = 'E20500751c0' AND techno = '02'ide

SELECT LTRIM(RTRIM(REPLACE(CONVERT(NVARCHAR(4000),remark), CHAR (13)+CHAR (10),''))),* FROM dbo.ppeflow WHERE pdctno = 'E20500751c0' AND techno = '02'rem

相關文章
相關標籤/搜索