EPUB | CHM | PDF

TPSQLTable.Properties.HasOIDs

Top Previous Next

Specifies whether a table has OID system column or not.

Syntax:

property HasOIDs: boolean;

Description:

Use read-only HasOIDs property to check whether a table has OID system column or not.

Example:

If PSQLTable1.HasOIDs then
  PSQLQuery1.SQL.Text := 'SELECT oid, * FROM ''' + PSQLTable1.TableName + ''''
else
  PSQLQuery1.SQL.Text := 'SELECT * FROM ''' + PSQLTable1.TableName + '''';