Skip to Content
MySQL, 5th Edition
book

MySQL, 5th Edition

by Paul DuBois
April 2013
Intermediate to advanced
1276 pages
42h 16m
English
Addison-Wesley Professional
Content preview from MySQL, 5th Edition

3. Data Types

Virtually everything you do in MySQL involves data in some way or another because, by definition, the purpose of a database management system is to manage data. Even a statement as simple as SELECT 1 involves evaluation of an expression to produce an integer data value.

Every data value in MySQL has a type. For example, 37.4 is a number and 'abc' is a string. Sometimes data types are explicit, such as when you issue a CREATE TABLE statement that specifies the type for each column you define as part of the table:

CREATE TABLE mytbl (   int_col  INT,       # integer-valued column   str_col  CHAR(20),  # string-valued column   date_col DATE       # date-valued column );

Other times data types are implicit, ...

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

MySQL Cookbook, 3rd Edition

MySQL Cookbook, 3rd Edition

Paul DuBois
MySQL Cookbook, 4th Edition

MySQL Cookbook, 4th Edition

Sveta Smirnova, Alkin Tezuysal
Learning MySQL, 2nd Edition

Learning MySQL, 2nd Edition

Vinicius M. Grippa, Sergey Kuzmichev
SQL Cookbook, 2nd Edition

SQL Cookbook, 2nd Edition

Anthony Molinaro, Robert de Graaf

Publisher Resources

ISBN: 9780133038552Purchase book