cTableDescription::IsPrimaryKey() - rstoetter/libsqlphp GitHub Wiki

Method IsPrimaryKey( )

 public   boolean rstoetter\libsqlphp\cTableDescription::IsPrimaryKey(string $field_name)

The method IsPrimaryKey( ) returns true, if the field with the name $field_name belongs to the primary key

Example:

Arguments

  • $field_name string - <p>is the name of the field to check</p>

Returns

boolean true, if the field with the name $field_name belongs to the primary key