Created
September 6, 2012 07:39
-
-
Save gabrieledarrigo/3652642 to your computer and use it in GitHub Desktop.
Basic SQL Statements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE table_name | |
( | |
column_name1 data_type, | |
column_name2 data_type, | |
column_name3 data_type, | |
.... | |
); | |
SELECT column_name(s) | |
FROM table_name | |
WHERE some_column=some_value | |
ORDER BY column_name(s) ASC|DESC; | |
INSERT INTO table_name (column1, column2, column3,...) | |
VALUES (value1, value2, value3,...); | |
UPDATE table_name | |
SET column1=value, column2=value2,... | |
WHERE some_column=some_value; | |
DELETE FROM table_name | |
WHERE some_column = some_value; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment