Field
Types
and descriptions
Field Descriptions
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
VARCHAR(4)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
TIMESTAMP
Field Names
Field Types
Some Guidelines (please read):
You cannot use spaces in table or field names .
You need to set a type
for each field. This contains the most common types of table fields.
The VARCHAR fields hold two less characters than the field size. VARCHAR size can be anything from 3-255.
For Name, city, state,address, use
theVARCHAR 64 or 128.
For phone numbers/Postal codes, use the VARCHAR 16.
For Email and URL fields and text (up to 253 characters), use VARCHAR(255) or TEXT types.
For raw numbers that will be part of numeric operations, or numeric fields that will serve as an id, use the INT fields.
For fields that will hold less than say a page of
text, use the TEXT type. For more than a page, use the MEDIUMTEXT field.
For a field that is going to, well, hold a book, use the LONGTEXT.
Don't
try to create a lot of 'overhead' by creating bigger fields than you
need by a wide margin. It lessens the efficiency of your database.
You can see above what the TEXT type fields hold. It's a lot.
This form
creates a default, normally dynamic MyISAM table. For more information
on table types, click on a "Documentation" link in the MySQL
section of your control panel. NOTE: This pageset now allows you to make the "whole shebang" Make a table , an insert form , and a query (search) form. Just start by making your table. Enjoy!
Field
1:
Select a Field Type
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
2:
Select a Field Type
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
VARCHAR(4)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
3:
Select a Field Type
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
VARCHAR(4) INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
4:
Select a Field Type
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
VARCHAR(4) INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
5:
Select a Field Type
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
VARCHAR(4) INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
6:
Select a Field Type
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
VARCHAR(4)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
7:
Select a Field Type
VARCHAR(16)
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
8:
Select a Field Type
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
9:
Select a Field Type
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
10:
Select a Field Type
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
11:
Select a Field Type
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
Field
12:
Select a Field Type
VARCHAR(32)
VARCHAR(64)
VARCHAR(128)
VARCHAR(255)
INT(12)
INT(32)
TEXT
MEDIUMTEXT
LONGTEXT
TIMESTAMP