Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »


Overview

ALTIBASE HDB의 Stored Procedures(PSM, Persistent Stored Modules)의 종류와 아래와 같이 세 가지 종류로 나뉜다.

  • 저장 프로시저: 입력 인자, 출력 인자, 입출력 인자를 가지고 프로시저 내에 정의된 절차에 따라서 SQL문을 수행하는 데이터베이스 처리기능이다. RETURN 값을 가지지 않으며 출력 인자와 입출력 인자들을 통해 클라이언트에게 값을 전달한다.
  • 저장 함수: 저장 프로시저와 동일하나 하나의 RETURN 값을 가지는 함수를 의미한다. 저장 프로시저와 달리 하나의 RETURN 값을 가지므로 SQL문의 연산식(expression)내에서 피연산자로 사용할 수 있다
  • 타입 세트: 저장 프로시저의 사용자 정의 타입들을 정의한 집합이다. 주로 저장 프로시저끼리 인자 또는 RETURN 값으로 사용자 정의 타입을 주고받을 때 사용한다.


 

What's Altibase Procedures

Altibase Stored Procedures are very similar tool to the Oracle's PL/SQL in concept. 

Stored Procedures are one of database object comprising SQL statement, Control flow statement, exception handler, etc. 

Stored Procedures are created in advance, compiled, and stored in database, ready for execution.

In that state, stored procedures can be simultaneously accessed by multiple SQL statements.

The term “stored procedure” is sometimes used to refer to the stored procedures and stored functions collectively.

The stored procedures and stored functions differ only in that stored functions return a value to the calling application, whereas the stored procedures do not.

The Altibase Stored Procedure's overall syntax is very similar to the Oracle's PL/SQL statement. 

Basic syntax of the procedures used in Oracle's PL/SQL is almost same with  Altibase Stored Procedures,

So you  can easily convert the Oracle Procedure to the Altibase Procedure  except for some function which is not supported in the Altibase HDB.

We call these Altibase Stored Procedure to the Altibase PSM ( Persistent Stored Module ) with a different name.

Altibase Stored Procedures can be made with 'CREATE PROCEDURE' and 'CREATE FUNCTION' statement that has synax of Oracle Procedure.

For further information about these statements, please refer to 'Altibase Stored Procedure Manual'.(Altibase Stored Procedure Manual)

  • No labels