EPUB | CHM | PDF

TPSQLDatabase.Properties.Comment

Top Previous Next

Contains the description assigned to a database.

Syntax:

property Comment: string;

Description:

Use read-only Comment property to obtain the description assigned to a database.

You can set new description by using COMMENT SQL command, see Postgres help, chapter "Reference, SQL Commands, COMMENT".

Example:

PSQLQuery1.SQL.Text := 'COMMENT ON ' +
  PSQLQuery1.Database.DatabaseName +
  'IS ''Some new comment''';
PSQLQuery1.ExecSQL;