Home > PHP > Function > PostgreSQL > pg_meta_data()

pg_meta_data()

pg_meta_data - Get meta data for table

Syntax

array pg_meta_data (resource $connection, string $table_name)

Arguments

  • connection - PostgreSQL database connection resource.
  • table_name - The name of the table.

Description

pg_meta_data() returns table definition for table_nameas an array.

Version

PHP 4.3.0, 5

Return value

An array of the table definition, or FALSE on error.