FireDAC.Comp.Client.TFDCustomConnection.GetKeyFieldNames
| [–] Properties | |
|---|---|
| Type: procedure function
| |
| Visibility: public | |
| Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
| Unit: FireDAC.Comp.Client | |
| Parent: TFDCustomConnection | |
Delphi
procedure GetKeyFieldNames(const ACatalogName, ASchemaName, ATableName, APattern: string;
AList: TStrings);
C++
void __fastcall GetKeyFieldNames(const System::UnicodeString ACatalogName, const System::UnicodeString ASchemaName, const System::UnicodeString ATableName, const System::UnicodeString APattern, System::Classes::TStrings* AList);
Description
Populates a string list with the names of the key fields in a table.
Call GetKeyFieldNames to retrieve a list of primary key fields in a table.
ACatalogName, ASchemaName, ATableName name the table whose primary field names you want added to the list.
APattern is the LIKE-pattern filtering field names.
AList is a TStrings descendant that receives the primary key field names. Any existing strings are deleted from the list before GetKeyFieldNames adds the names of the primary key fields in ATableName.
The field names are normalized – enclosed in quotation marks, if that is required – otherwise are converted to default dictionary case.
See Also
Samples
- FireDAC Get Field Names sample