What\'s the difference between this code:
CREATE TABLE samples ( sampleid INT(11) NOT NULL AUTO_INCREMENT, sampledate DATE NOT NULL, location VARCHAR(25) N
They are literally the same. Here is a quick site that shows you the different ways (3) to do it. http://www.java2s.com/Code/SQL/Key/Defineanduseprimarykey.htm