Re: Metadata - mysqli

From: Date: Tue, 24 Nov 2009 12:19:53 +0000
Subject: Re: Metadata - mysqli
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-300050@lists.php.net to get a copy of this message
2009/11/24 keyser soze <bajopalabra@yahoo.com.ar>: > mysqli_fetch_field provide result metadata > like 'column name', 'max length', 'datatype' etc > but i need the "comment" of each column > > is this possible? The table that stores data about columns is information_schema.COLUMNS. You're looking for the COLUMN_COMMENT column. Eg SELECT COLUMN_COMMENT FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'database' AND TABLE_NAME = 'table' AND COLUMN_NAME = 'column';

« previous php.general (#300050) next »