select a.ci_id,wm_concat(b.stu_name) stu_names
from teacher_lbh a,student_lbh b
where instr(a.stu_ids,b.stu_id)>0
group by a.ci_id
但是查詢結(jié)果 并不是按照張三 李四。。。排序的
from teacher_lbh a,student_lbh b
where instr(a.stu_ids,b.stu_id)>0
group by a.ci_id
但是查詢結(jié)果 并不是按照張三 李四。。。排序的
2016-12-01
老師的確沒講錯,any是指這個集合當(dāng)中所有成員的某一個,故只需要大于這個集合中的一個值(最小的那個值)就滿足條件了,如果是要大于這個集合的所有值才需要大于最大的那個值才行。。。。大家自己好好想想
2016-11-27
老師講的不錯
select nvl(to_char(deptno),'匯總') ,sum(sal) from emp group by cube(deptno) order by deptno nulls last;
select nvl(to_char(deptno),'匯總') ,sum(sal) from emp group by cube(deptno) order by deptno nulls last;
2016-11-27
order by 表達式:列,別名,序號 [asc /desc [nulls first/last] ]
命令行:a 空格 desc
命令行:host cls 等價于 clear scr
老師講得不錯,給力
命令行:a 空格 desc
命令行:host cls 等價于 clear scr
老師講得不錯,給力
2016-11-27