cTableConstraints::GetFullForeignKey() - rstoetter/libsqlphp GitHub Wiki
Method GetFullForeignKey( )
public mixed rstoetter\libsqlphp\cTableConstraints::GetFullForeignKey(string $constraint_name, array $a_keys)
- Namespace : rstoetter\libsqlphp
- Class name: cTableConstraints
- This method is defined by rstoetter\libsqlphp\cTableConstraints
The method GetFullForeignKey( ) returns in an array $a_keys all foreign key columns which belong to a certain constraint $constraint_name
Example:
Arguments
- $constraint_name string - <p>the name of the constraint</p>
- $a_keys array - <p>an array with all foreign key columns which belong to the constraint $constraint_name. The array holds items, which are array with the name of the constraint, the name of the table, the name of the column, the referenced table name and the referenced column name. See the constants ID_FK_CONSTRAINT_NAME, ID_FK_TABLE_NAME, ID_FK_REFRENCED_COLUMN_NAME, ID_FK_REFRENCED_TABLE_NAME, ID_FK_REFRENCED_COLUMN_NAME</p>