카페검색 본문
카페글 본문
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /*+ gather-plan_statistics */ ename, sal, job from emp where ename = 'SCOTT' and sal = 3000 ; select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /*+ gather_plan_statistics */ ename, sal, job from emp where ename = substr('SCOTT3000', 1, instr('SCOTT3000', regexp_substr('SCOTT3000', '[[:digit:]]'))-1) and sal = to_number(substr('SCOTT3000', instr('SCOTT3000', regexp_substr...
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /*+ gather_plan_statistics */ ename, sal, job from emp where ENAME=regexp_substr('SCOTT3000', '[[:alpha:]]+') AND SAL=REGEXP_SUBSTR('SCOTT3000', '[[:digit:]]+') ;
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /*+ gather_plan_statistics */ ename, sal, job from emp where ename = 'SCOTT' and sal = '3000'; select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /*+ gather_plan_statistics */ ename, sal, job from emp where ename = 'SCOTT' and sal = 3000;
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
튜닝 전 select /*+ gather_plan_statistics */ ename, sal, job from emp where ename||sal = 'SCOTT3000'; select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST') ) ; 튜닝 후 select /*+ gather_plan_statistics */ ename, sal...
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
--튜닝후 : select /*+ gather_plan_statistics */ ename, sal, job from emp where ename = 'scott' and sal = 3000; select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /*+ gather_plan_statistics */ ename, sal, job from emp where ename = 'SCOTT' and sal = 3000; select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /* gather_plan_statistics */ ename, sal, job from emp where ename = 'SCOTT' AND sal = '3000'; select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
-
Re: 문제7. 아래의 SQL 을 튜닝하시오 ! 2024.06.14해당카페글 미리보기
select /*+ gather_plan_statistics */ ename, sal, job from emp where ename = 'SCOTT' and sal = 3000;