Created
September 25, 2013 15:31
-
-
Save kurotaky/6701393 to your computer and use it in GitHub Desktop.
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
| CREATE TABLE `Shohin` ( | |
| `shohin_id` char(4) NOT NULL, | |
| `shohin_mei` varchar(100) NOT NULL, | |
| `shohin_bunrui` varchar(32) NOT NULL, | |
| `hanbai_tanka` int(11) default NULL, | |
| `shiire_tanka` int(11) default NULL, | |
| `torokubi` date default NULL, | |
| PRIMARY KEY (`shohin_id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
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
| START TRANSACTION; | |
| INSERT INTO Shohin VALUES ('0001', 'Tシャツ' ,'衣服', 1000, 500, '2009-09-20'); | |
| INSERT INTO Shohin VALUES ('0002', '穴あけパンチ', '事務用品', 500, 320, '2009-09-11'); | |
| INSERT INTO Shohin VALUES ('0003', 'ワイシャツ', '衣類', 4000, 2800, NULL); | |
| INSERT INTO Shohin VALUES ('0004', '包丁', 'キッチン用品', 3000, 2800, '2009-09-20'); | |
| INSERT INTO Shohin VALUES ('0005', '圧力鍋', 'キッチン用品', 6800, 5000, '2009-01-15'); | |
| INSERT INTO Shohin VALUES ('0006', 'フォーク', 'キッチン用品', 500, NULL, '2009-09-20'); | |
| INSERT INTO Shohin VALUES ('0007', 'おろしがね', 'キッチン用品', 880, 790, '2008-04-28'); | |
| INSERT INTO Shohin VALUES ('0008', 'ボールペン', '事務用品', 100, NULL, '2009-11-11'); | |
| COMMIT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment