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

Method GetPrimaryKeyFieldsWithoutForeignKeys( )

 public   mixed rstoetter\libsqlphp\cKEY_COLUMN_USAGE::GetPrimaryKeyFieldsWithoutForeignKeys(string $table_name, array $ary)

The method GetPrimaryKeyFieldsWithoutForeignKeys returns an array of column names as strings for all fields in the table $table_name, which are primary keys and not mentioned as foreign keys

Example:

Arguments

  • $table_name string - <p>is the name of the table to examine</p>
  • $ary array - <p>an array of column names as strings</p>