Skip to content

Instantly share code, notes, and snippets.

@asathoor
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asathoor/7e962ed6d7ae76e2bc15 to your computer and use it in GitHub Desktop.
Save asathoor/7e962ed6d7ae76e2bc15 to your computer and use it in GitHub Desktop.
SQL - my collection
===================
## CREATE TABLE
CREATE TABLE my_table
(
first_name VARCHAR(50),
last_name VARCHAR(50),
email VARCHAR(50),
birthday DATE,
gender CHAR.
number INT,
decimalNumber DECIMAL(4,2)
);
## INSERT
INSERT INTO tabel (kolonn1, kolonne2) VALUES (nr1, nr2);
## SELECT
SELECT * FROM table;
SELECT 'first_name','last_name' FROM TABLE table;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment