back to mysql 

mysql.Field

generated from ../src/mod_mysql/fld.cpp

Represents a field retrieved from a Result.

Constants

Properties

Name Type Description
autoIncrement read only Boolean When true, the field has the AUTO_INCREMENT attribute.
binary read only Boolean When true, the field has the BINARY attribute.
catalog read only String The catalog name. This value is always "def".
db read only String The name of the database that the field comes from. If the field is a calculated field, db is an empty string.
def read only String The default value of this field, as a null-terminated string. This is set only if you use listFields.
length read only Integer The width of the field, as specified in the table definition.
maxLength read only 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 read only Boolean When true, the field is part of a non-unique key.
name read only 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 read only Boolean When true, field can't be null.
orgName read only String The name of the field. Aliases are ignored.
orgTable read only String The name of the table. Aliases are ignored.
primaryKey read only Boolean When true, the field is part of the primary key.
table read only 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 read only Boolean When true, the field is part of a unique key.
unsigned read only Boolean When true, the field has the UNSIGNED attribute.
zeroFill read only Boolean When true, the field has the ZEROFILL attribute.



Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.