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

Method HasPrimaryKey( )

 public   boolean rstoetter\libsqlphp\cKEY_COLUMN_USAGE::HasPrimaryKey(string $tablename)

The method HasPrimaryKey( ) returns true, if the table with the name $tablename has any primary key field

Example:

Arguments

  • $tablename string - <p>is the name of the table to examine</p>

Returns

boolean true, if the table with the name $tablename has any primary key field