O'Reilly logo

Sams Teach Yourself SQL in 24 Hours, Fifth Edition by Arie D. Jones, Ron D. Plew, Ryan Stephens

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

Appendix D. CREATE TABLE Statements for Book Examples

This appendix is useful because it not only lists the CREATE TABLE statements used in the examples, but also gives you some of the syntax differences among the various database platforms. You can use these statements to create your own tables for performing hands-on exercises.

MySQL

EMPLOYEE_TBL

CREATE TABLE EMPLOYEE_TBL(EMP_ID              VARCHAR(9)       NOT NULL,LAST_NAME           VARCHAR(15)      NOT NULL,FIRST_NAME          VARCHAR(15)      NOT NULL,MIDDLE_NAME         VARCHAR(15),ADDRESS             VARCHAR(30)      NOT NULL,CITY                VARCHAR(15)      NOT NULL,STATE               CHAR(2)          NOT NULL,ZIP                 INTEGER(5)       NOT ...

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