cKEY_COLUMN_USAGE::GetPrimaryKeyFields() - rstoetter/libsqlphp GitHub Wiki

Method GetPrimaryKeyFields( )

 public   mixed rstoetter\libsqlphp\cKEY_COLUMN_USAGE::GetPrimaryKeyFields(string $tablename, array $a_ret)

The method GetPrimaryKeyFields( ) returns the primary key of $table_name as an arry

Returns an array of the database table fields of the primary key of the table $tablename the NULL-fields are not used and can later be filled with values => $a_ret = ( (f1, NULL), (f2, NULL), (f3, NULL) )

Example:

Arguments

  • $tablename string - <p>the name of the table</p>
  • $a_ret array - <p>the primary key as array</p>