Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

MySQL

Selecting the proper column type for your tables is key to a successful database. Table C.12 lists the different string, number, and other types you can use, along with how much space they will take up on the server’s hard drive. When choosing a type for each column, you should use the most efficient (i.e., the most size-frugal) data type based upon what the largest value of the column could be.

Table C.12. The list of available types for column definitions in a MySQL table.
MySQL Data Types
TYPESIZEDESCRIPTION
CHAR[Length]Length bytesA fixed-length field from 0 to 255 characters long
VARCHAR(Length)String length + 1 bytesA fixed-length field from 0 to 255 characters long
TINYTEXTString length + 1 bytesA string with a maximum length of 255 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book