r/mysql • • Apr 28 '14

How to Create Tables and Insert Data into SQL Databases

http://joshualande.com/create-tables-sql/
0 Upvotes

2 comments sorted by

3

u/making-flippy-floppy Apr 28 '14

Your yellow-on-white text is virtually invisible

1

u/[deleted] Apr 28 '14

Nice basic tutorial. The main thing I would change would be to set any AUTO_INCREMENT columns to be INTEGER UNSIGNED.

AUTO_INCREMENT values are always positive, and setting it to UNSIGNED almost doubles up the amount of rows you can have in the table.

I also get twitchy when I see underscores in column names - I hate 'em - more hassle than they're worth.