Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   FB2. Gegenstück zu "COMMENT ON" (https://www.delphipraxis.net/211393-fb2-gegenstueck-zu-comment.html)

hoika 9. Sep 2022 17:11

Datenbank: Firebird • Version: 2 • Zugriff über: IBDAC

FB2. Gegenstück zu "COMMENT ON"
 
Hallo,
ich spiele gerade mit COMMENT ON rum.

https://firebirdsql.org/refdocs/lang...l-comment.html

Wie lese ich denn die Comments wieder aus, ohne über die Systemtabellen zu gehen?
Stichwort: FB3/FB4, wo der Zugriff auf Systemtabellen ja "etwas" limitiert wird.

Oder geht es eher um den Schreibzugriff auf die Systemtabellen,
weil hier
https://firebirdsql.org/file/documen...l-comment.html
steht ja wieder

Client applications can view comments from these fields.

himitsu 9. Sep 2022 17:23

AW: FB2. Gegenstück zu "COMMENT ON"
 
Zitat:

Comments are saved to the RDB$DESCRIPTION column of the corresponding system tables
Zitat:

The COMMENT ON statement adds comments for database objects (metadata).
Comments are saved to text fields of the BLOB type in the RDB$DESCRIPTION column of the corresponding system tables. Client applications can view comments from these fields.
Jupp, genau so, wie es da steht.
Du machst ein SELECT und ließt RDB$DESCRIPTION aus.

https://ask.libreoffice.org/t/displa...d-base/55707/4
https://ib-aid.com/download/docs/fir...04-fields.html
https://ib-aid.com/download/docs/fir...systables.html

z.B.
SQL-Code:
SELECT * FROM RDB$FIELDS
für COMMENT ON, was an ein Tabelen-Feld ging.



Es wäre natürlich zu einfach, wenn man das LESEN mit da erwähnen/zeigen/verlinken (Beispiel) könnte, da wo man das SCHREIBEN beschreibt.
Aber machen Andere auch nicht besser. :freak: https://www.postgresql.org/docs/curr...l-comment.html

hoika 9. Sep 2022 17:30

AW: FB2. Gegenstück zu "COMMENT ON"
 
Hallo,
ja, das habe ich hier schon zusammengebaut für die Feld-Deskriptions.

Select RDB$DESCRIPTION, RDB$FIELD_NAME, RDB$RELATION_NAME From RDB$RELATION_FIELDS
Where (RDB$DESCRIPTION<>"")


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:27 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz