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

Method GetPrimaryKey( )

 public   mixed rstoetter\libsqlphp\cTableDescription::GetPrimaryKey(array $a_columns, boolean $add_table_name)

The method GetPrimaryKey( ) returns all column names, which are part of the primary key

Example:

Arguments

  • $a_columns array - <p>an array of strings with the names of the columns, which belong to the primary key</p>
  • $add_table_name boolean - <p>true, if the table name and a point (.) should be prefixed to the names. Defaults to false</p>