0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Oracle Database 12c以降で、テーブルの列に配列型を定義する方法

Posted at

手順

  1. ユーザ定義の型を作成する
  2. テーブル作成時の列の型に、作成したユーザ定義型を指定する

手順ごとのサンプルSQL

  1. ユーザ定義の型を作成する
    CREATE TYPE array_type AS VARRAY(30) OF VARCHAR2(100);
    
  2. テーブル作成時の列の型に、作成したユーザ定義型(array_type)を指定する
    CREATE TABLE dept_phone_list (
      id NUMBER(5), 
      array_sample array_type);
    

詳細は公式ドキュメントを参照して下さい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?