RE: [PHP] Re: How to check if a field is auto increment
| From: | Jay Blanchard | Date: | Fri, 26 Jul 2002 13:13:58 +0000 |
| Subject: | RE: [PHP] Re: How to check if a field is auto increment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109714@lists.php.net to get a copy of this message | ||
[snip]
ok tahnks, anyway, while i was looking at the php help manual i found
mysql_field_flags which solves my auto-inc problem, but not the default
value anyway, THX
[/snip]
Go with describe table, a sample;
mysql> describe tblCDR;
+----------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------+-------------+------+-----+---------+----------------+
| id | int(11) | | PRI | NULL | auto_increment |
The default value in this case is NULL
HTH!
Jay
Of course I dont look busy
I did it right the first time
*************************************
* Want to meet other PHP developers *
* in your area? Check out: *
* http://php.meetup.com/ *
* No developer is an island ... *
*************************************