cKEY_COLUMN_USAGE_Entry::RefersToTable() - rstoetter/libsqlphp GitHub Wiki

Method RefersToTable( )

 public   boolean rstoetter\libsqlphp\cKEY_COLUMN_USAGE_Entry::RefersToTable(string $tablename, string $target_tablename)

The method RefersToTable( ) returns true, if the referenced table name is $target_tablename and the table name is $tablename in a foreign key

Example:

Arguments

  • $tablename string - <p>is the name of the table</p>
  • $target_tablename string - <p>is the name of the referenced table</p>

Returns

boolean true, if there is a foreign key