Skip to content

Instantly share code, notes, and snippets.

@mattm
Last active April 23, 2017 18:12
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 mattm/0ae131ae773dbbacd87e9891828d2501 to your computer and use it in GitHub Desktop.
Save mattm/0ae131ae773dbbacd87e9891828d2501 to your computer and use it in GitHub Desktop.
Charges Table
DROP TABLE IF EXISTS charges;
CREATE TABLE charges (id INT PRIMARY KEY AUTO_INCREMENT, amount DECIMAL(10,2));
INSERT INTO charges (amount) VALUES (18);
INSERT INTO charges (amount) VALUES (15);
INSERT INTO charges (amount) VALUES (27);
+----+--------+
| id | amount |
+----+--------+
| 1 | 18.00 |
| 2 | 15.00 |
| 3 | 27.00 |
+----+--------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment