Re: Primary Key
| From: | Robert V. Zwink | Date: | Wed, 11 Oct 2000 20:36:24 +0000 |
| Subject: | Re: Primary Key | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19641@lists.php.net to get a copy of this message | ||
How about mysql_field_flags() ?
From http://www.php.net/manual/function.mysql-field-flags.php
The following flags are reported, if your version of MySQL is current enough
to support them: "not_null", "primary_key", "unique_key",
"multiple_key",
"blob", "unsigned", "zerofill", "binary", "enum",
"auto_increment",
"timestamp".
Robert Zwink
http://zwink.leviate.org
-----Original Message-----
From: Wee Chua <Chua@mail.interclean.com>
To: PHP (E-mail) <php-general@lists.php.net>; Php-Db (E-mail)
<php-db@lists.php.net>; Php-Db-Help (E-mail) <php-db-help@lists.php.net>
Date: Tuesday, October 10, 2000 8:15 AM
Subject: [PHP] Primary Key
>Hi,
>Is there any way I could find out whether the value of the variable is the
>Primary Key or not?
>
>Thanks,
>Calvin
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>