Previous Topic: %AttIsFKNext Topic: %AttIsRolenamed


%AttIsPK

A Boolean predicate that determines whether or not the current attribute is a primary key member.

Note: This macro is a legacy macro and is used for logical-only or combination logical/physical models. For any new physical-only models you need to use %ColIsPK. For more information on legacy macros and their related new macros, see the topic "Legacy Macros."

Syntax

%AttIsPK

Syntax Example

%ForEachAttribute() {

%If(%AttIsPK) {

%AttName -> PK}

}

Expansion

master-number -> PK

movie-copy-number -> PK

Usage

Classified as an Attribute macro.