譬如我表test的字段xh列,该列的有些数据因为人为的原因输入的时候有回车换行符,请问如何去掉其后的回车换行呢?

解决方案 »

  1.   

    更新数据库表xh字段内容
    update test
    set xh = replace(xh, chr(10), '')或者在插入数据之前对回车换行符等符号进行转换操作
      

  2.   

    select replace(xh,chr(10),'') xh from test;
      

  3.   

    update test
    set xh = replace(xh, chr(10), '')
    where instr(xh, chr(10)) > 0查找的话
    select * from test where instr(xh, chr(10)) > 0