# SQL Portability - Metadata

- ## Getting data about your data:

  $sth = $dbh->table_info( ... )
  - Now allows parameters to qualify which tables you want info on
  $sth = $dbh->column_info($cat, $schema, $table, $col);
  - Returns information about the columns of a table
  $sth = $dbh->primary_key_info($cat, $schema, $table);
  - Returns information about the primary keys of a table
  @keys = $dbh->primary_key($cat, $schema, $table);
  - Simpler way to return information about the primary keys of a table
  $sth = $dbh->foreign_key_info($pkc, $pks, $pkt, $fkc, $fks, $fkt);
  - Returns information about foreign keys

Previous slide | Next slide | Back to first slide | View graphic version