Date: prev next · Thread: first prev next last


先ほど、見つけました。
Firebirdで実行可能です。テーブル名のところだけ、実テーブル名に書き換えて
実行してみてください。
not null制約が有効であれば”1”が表示されます。

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='テーブル名' 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;

sql文終了-----------------------------


On 2017年03月07日 20:40, 福永ケンセイ wrote:
インターネット調べてみると
mysql では
show colums from テーブル名
desc テーブル名
できるようなのですが
sql文実行すると
下記エラーが出ます。
 Unexpected token: DESC in statement [desc]
何方か教えていただけないでしょうか。


--
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


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.