[pgsql-jp: 25932] Re: テーブル定義書を作成するソフト
sugita @ sra.co.jp
sugita @ sra.co.jp
2002年 5月 14日 (火) 18:04:22 JST
杉田です。
From: SAKAIDA Masaaki <sakaida @ psn.ne.jp>
Subject: [pgsql-jp: 25929] Re: テーブル定義書を作成するソフト
Date: Tue, 14 May 2002 17:41:35 +0900
;;; 横山さんの目的とは、ちょっとずれますが、テーブルを新規に作成する
;;; 場合であれば、create table 文 にコメントを入れておいて "スキーマ
;;; 定義書もどき" を作成することができます。
私は COMMENT でコメントを付けておくと、ツールで拾えるようにできていいんじゃ
ないかなという気がしています。psql ならば、、、
sugita=# \d+
List of relations
Name | Type | Owner | Description
---------------------+----------+--------+------------------
icon_catalog | table | sugita | アイコンカタログ
icon_catalog_id_seq | sequence | sugita |
test | table | sugita |
test2 | table | sugita |
都道府県 | table | sugita |
(5 rows)
sugita=#
sugita=# \d+ icon_catalog
Table "icon_catalog"
Column | Type | Modifiers | Description
----------+---------+---------------------------------------------------------+--------------------------------------
id | integer | not null default nextval('"icon_catalog_id_seq"'::text) |
name | text | not null | アイコンのベースファイル名
width | integer | not null | アイコンのピクセル幅
height | integer | not null | アイコンのピクセル高
data_oid | oid | not null | アイコンデータのラージオブジェクトID
Indexes: icon_catalog_name_idx
Unique keys: icon_catalog_id_key
Check constraints: "check_name" (length(name) > 0)
"check_width" (width > 0)
"check_height" (height > 0)
"check_data_oid" (data_oid > 0)
Triggers: icon_catalog_after_delete_hook
sugita=#
Kenji Sugita
sugita @ sra.co.jp
pgsql-jp メーリングリストの案内