志義ゼミ様回答ありがとうございます。
下記SQl文を実行したところ
sql文開始-----------------------------
select r.rdb$field_name,
t.rdb$type_name,
f.rdb$field_length,
r.rdb$null_flag,
f.rdb$validation_source
from rdb$relation_fields r, rdb$types t, rdb$fields f
where r.rdb$relation_name=''shohin' and
f.rdb$field_name=r.rdb$field_source and
t.rdb$field_name='RDB$FIELD_TYPE' and
f.rdb$field_type=t.rdb$type;
下記エラーが出て実行できませんでした。
1: Table not found in statement [select r.rdb$field_name,
t.rdb$type_name,
f.rdb$field_length,
r.rdb$null_flag,
f.rdb$validation_source
from rdb$relation_fields]
オラクル版ですが下記SQlを見つけました
SELECT
TABLE_NAME
,COLUMN_NAME as 項目名
,DATA_TYPE as データ型
,NVL(DATA_PRECISION, CHAR_COL_DECL_LENGTH) as 長さ
,DATA_SCALE as 小数部
FROM
USER_TAB_COLUMNS
WHERE
TABLE_NAME = '*テーブル名*'
ORDER BY
TABLE_NAME
,COLUMN_ID
テーブル名を変更すればよいので実行したところ
1: Table not found in statement [SELECT
TABLE_NAME
,COLUMN_NAME as 項目名
,DATA_TYPE as データ型
,NVL(DATA_PRECISION, CHAR_COL_DECL_LENGTH) as 長さ
,DATA_SCALE as 小数部
FROM
USER_TAB_COLUMNS]
前者同様テーブルが見つからないエラーでできませんでした。
--
Unsubscribe instructions: E-mail to users+unsubscribe@ja.libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/ja/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
- [ja-users] 属性の確認(続き) · 福永ケンセイ
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.