sqlserver 中换行符,如下:
sql语句如下:
//替换换行-使用char(10)
select REPLACE(F_CNKITitle ,char(10),'') title from tzkj_CNKIContent tc where --F_CnkiContentID ='ffdc7412-41e1-4d42-8693-cc79d0cf2dd3'and
len(REPLACE(F_CNKITitle ,char(10),''))<3
//替换空格-使用char(32)
select REPLACE(F_CNKITitle ,char(13),'') as title from tzkj_CNKIContent tc where --F_CnkiContentID ='ffdc7412-41e1-4d42-8693-cc79d0cf2dd3'and
len(REPLACE(F_CNKITitle ,char(32),''))<3