Tags
- postman pre-request
- Android/iOS Developer
- Intellij
- postman session
- c#
- postman
- Java
- postman excel
- MFC
- postman automations
- postman tests
- 프런트엔드
- postman collection variables
- emplace_back
- postman csv
- postman collection
- oracle
- UI/UX Engineer
- web developer
- Unity
- Interaction developer
- LSL_Script
- Front-end developer
- 우수한 프런트 개발자
- postman html parse
- 좋은 개발자
- C++
- 다빈치 리졸브
- solidity
- Android
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Archives
- Today
- Total
david's daily developer note
PL/SQL 2. 다수의 SQL 수행 시간 측정하기. 본문
728x90
다수의 SQL문 처리나, 혹은 기타의 질의 수행 시간을 알고자 하면, PL/SQL 블록을 만들어서 구할 수 있다.
아래의 두 명령어 설정으로, 결과를 확인 할 수 있는 환경을 만든다.
1. PL/SQL의 출력을 본다.
SQL> set serveroutput on
2. 명령어 수행 시간을 확인한다. (PL/SQL 파싱 과정 때문에 위의 구문보다 근소하게 높다.)
SQL> set timing on
다음은 암시적 커서를 사용하는 경우에 대해서 질의 시간을 측정하는 PL/SQL 블록이다.
DECLARE
l_start number default dbms_utility.get_time;
BEGIN
insert into test values ('hi');
dbms_output.put_line
( round( (dbms_utility.get_time-l_start)/100, 2 ) ||
' seconds...' );
END;
/
아래는 명시적 커서의 경우이다.
DECLARE
type rc is ref cursor;
l_rc rc;
l_start number default dbms_utility.get_time;
BEGIN
open l_rc for
'SELECT * From test';
close l_rc;
dbms_output.put_line
( round( (dbms_utility.get_time-l_start)/100, 10 ) ||
' seconds...' );
END;
/
728x90
'Develop (kids)' 카테고리의 다른 글
오라클 데이타베이스 기반 .NET 애플리케이션의 구축 (0) | 2010.08.06 |
---|---|
PostgreSQL PL/SQL CREATE FUNCTION (0) | 2010.07.01 |
PL/SQL 1. Stored Procedure 기본 선언 및 실행. (0) | 2010.06.30 |
원격 윈도우 종료 , 재부팅 (0) | 2010.06.29 |
PostgreSQL 원격 접속 허용 (0) | 2010.06.28 |