| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Jim O'Quinn | Date: | October 7 1999 5:22am |
| Subject: | finding AUTO_INCREMENT type from client side | ||
| View as plain text | |||
Is there any way to programmatically figure out
if a field is AUTO_INCREMENT? I can do something
like:
for ($x=0; $x < $sth->numfields; $x++) {
$colname = $sth->name->[$x];
$size = $sth->length->[$x];
$maxlen = $sth->length->[$x];
$type = $sth->type->[$x];
}
But from what I can tell, 'type' is a INT and
there is no way to tell if it is AUTO_INCREMENT
or not?
Does anyone know of a way to figure out if a
field is AUTO_INCREMENT?
Jim
| Thread | ||
|---|---|---|
| • finding AUTO_INCREMENT type from client side | Jim O'Quinn | 7 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Thimble Smith | 7 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Jim O'Quinn | 7 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Michael Widenius | 8 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Jim O'Quinn | 8 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Thimble Smith | 8 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Jim O'Quinn | 8 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Thimble Smith | 8 Oct |
| • Re: finding AUTO_INCREMENT type from client side | Michael Widenius | 10 Oct |
