Created
February 15, 2017 01:49
-
-
Save radityopw/26dc8bef34fd7fe9fdb4272f9c0841fd to your computer and use it in GitHub Desktop.
contoh pembuatan tabel kupon.sql
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 `kupon` ( | |
`code` varchar(5) NOT NULL, | |
`max_usage` int(11) NOT NULL DEFAULT '10', | |
`usage` int(11) NOT NULL DEFAULT '0' | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
INSERT INTO `kupon` (`code`, `max_usage`, `usage`) VALUES ('CQ839', '10', '0'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment