Skip to content

Instantly share code, notes, and snippets.

@telagraphic
Created April 5, 2013 13:04
Show Gist options
  • Save telagraphic/5319132 to your computer and use it in GitHub Desktop.
Save telagraphic/5319132 to your computer and use it in GitHub Desktop.
mysql> create table workouts
-> (
-> id INT NOT NULL AUTO_INCREMENT,
-> PRIMARY KEY (id),
-> date DATETIME NOT NULL,
-> reps INT NOT NULL,
-> notes VARCHAR(200)
-> );
cant type this syntax:
insert into workouts values (now(), 10, 'good workout');
have to declare columns:
insert into workouts (date, reps, notes) values (now(), 10, 'good workout');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment