select (select a.ename from emp a where a.empno=7369) aa from emp
aa
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
一共14条
我觉得 select字段内的子查询是外查询关联的唯一一条记录就不会出错
select * from emp 显示原来表中的14条记录
select a.ename from emp a where a.empno=7369 显示1条记录smith
select 'aa' from emp 显示14条记录 内容都为'aa'
aa
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
smith
一共14条
我觉得 select字段内的子查询是外查询关联的唯一一条记录就不会出错
select * from emp 显示原来表中的14条记录
select a.ename from emp a where a.empno=7369 显示1条记录smith
select 'aa' from emp 显示14条记录 内容都为'aa'