Skip to content

Instantly share code, notes, and snippets.

@matthewblewitt
Last active September 6, 2018 10:12
Show Gist options
  • Save matthewblewitt/1866e0c1b93518b934a82972309aa9c5 to your computer and use it in GitHub Desktop.
Save matthewblewitt/1866e0c1b93518b934a82972309aa9c5 to your computer and use it in GitHub Desktop.
SQL-cheatsheet
CREATE DATABASE app;
USE app;

CREATE TABLE users (
    id int,
    last_name varchar(255),
    first_name varchar(255)
);

INSERT INTO users ( first_name ) VALUES ( 'Matt' );
INSERT INTO users VALUES ( null, 'Matt', 'Blewitt' );

DROP TABLE users;

SELECT * FROM users;


exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment