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

Method GetPrimaryKey( )

 public   mixed rstoetter\libsqlphp\cPrimaryKey::GetPrimaryKey(array $ary, boolean $add_table_names)

The method GetPrimaryKey( ) returns an array of the keys for the primary key.

The returned array consits of the field names and the data part is null. ie: ( (f1, NULL), ( f2, NULL ) usw. )

Example:

Arguments

  • $ary array - <p>the returned array</p>
  • $add_table_names boolean - <p>if true, then the table name is added to the field names. Defaults to false.</p>

See also