mysql.Field
generated from ../src/mod_mysql/fld.cppRepresents a field retrieved from a Result.
Constants
Properties
| Name | Type | Description |
|---|---|---|
autoIncrement ![]() |
Boolean | When true, the field has the AUTO_INCREMENT attribute. |
binary ![]() |
Boolean | When true, the field has the BINARY attribute. |
catalog ![]() |
String | The catalog name. This value is always "def". |
db ![]() |
String | The name of the database that the field comes from. If the field is a calculated field, db is an empty string. |
def ![]() |
String | The default value of this field, as a null-terminated string. This is set only if you use listFields. |
length ![]() |
Integer | The width of the field, as specified in the table definition. |
maxLength ![]() |
Integer | The maximum width of the field for the result set (the length of the longest field value for the rows actually in the result set. |
multipleKey ![]() |
Boolean | When true, the field is part of a non-unique key. |
name ![]() |
String | The name of the field. If the field was given an alias with an AS clause, the value of name is the alias. |
notNull ![]() |
Boolean | When true, field can't be null. |
orgName ![]() |
String | The name of the field. Aliases are ignored. |
orgTable ![]() |
String | The name of the table. Aliases are ignored. |
primaryKey ![]() |
Boolean | When true, the field is part of the primary key. |
table ![]() |
String | The name of the table containing this field, if it isn't a calculated field. For calculated fields, the table value is an empty string. If the table was given an alias with an AS clause, the value of table is the alias. |
uniqueKey ![]() |
Boolean | When true, the field is part of a unique key. |
unsigned ![]() |
Boolean | When true, the field has the UNSIGNED attribute. |
zeroFill ![]() |
Boolean | When true, the field has the ZEROFILL attribute. |

© 2002 - 2007 Franky Braem.