用scott.emp,新建两个table
测试如下,部门为空,
update scott.emp
set deptno=
where empno='7369';
如下sql 可取到值,
update scott.emp
set deptno=20
where empno='7369';
部门不为空时,刚查询的sql 就会取出多笔,其实只有一笔type='123', ...
↧