Created
October 12, 2012 02:06
-
-
Save saltnlight5/3876953 to your computer and use it in GitHub Desktop.
SQL Demos
This file contains hidden or 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
DROP TABLE IF EXISTS TEST; | |
CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255)); | |
INSERT INTO TEST VALUES(1, 'Hello'); | |
INSERT INTO TEST VALUES(2, 'World'); | |
SELECT * FROM TEST ORDER BY ID; | |
UPDATE TEST SET NAME='Hi' WHERE ID=1; | |
DELETE FROM TEST WHERE ID=2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment