有时候我们在关联字段的时候,总是关联不上,以为有空格,trim 了之后还是关联不上,但是从字段上来看又看不出区别来,
其他只要稍微仔细用 电脑左右键的右键一个字符一个字符向右移动,到最后面的时候就看出端倪来了
select p.*,length(job) from scott.emp p where deptno=20;
--修改字段加上换行符号
update scott.emp p set p.job=p.job||chr(13) where deptno=20;
update scott.emp p set p.job=replace(p.job,chr(13)) where deptno=20; --去掉换行号
--查找字段是否有换行符号的
select * from scott.emp p where instr(job,chr(13))>0;
select * from scott.emp p where job like '%'||chr(13)||'%';
select length(job) from scott.emp p where deptno=20;