O'Reilly logo

Tera-Tom Genius Series - DB2 SQL by Leslie Nolander, Tom Coffing

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14 – Table Create and Data Types

“Create a definite plan for carrying out your desire and begin at once, whether you are ready or not, to put this plan into action. “

- Napoleon Hill

The Basics of Creating a Table

image

At the bare minimum, you must include the tablename, along with the column names and their data types, to create a table.

Creating a Table with NOT NULL Constraints

image

A column that does not allow NULLs has a NOT NULL constraint, and it does not accept rows with no value for that column. By default, all columns can be Nullable unless ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required