Created
January 4, 2014 16:05
-
-
Save tatuas/8256848 to your computer and use it in GitHub Desktop.
MySQLメモ。
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
| http://dev.mysql.com/downloads/mysql/ | |
| community server 5.1.xxxがおすすめ。 | |
| MySQLは大文字小文字区別されない模様。 | |
| create database sampledb character set utf8; | |
| use sampledb; | |
| create table sampletb (id integer, name varchar(64)); | |
| show tables; | |
| insert into sampletb(id, name) value(1, "hello"); | |
| insert into sampletb(id, name) value(2, "bye"); | |
| select * from sampletb; | |
| //tbの中身を消去 | |
| delete from sampletb; | |
| //tbそのものを消去 | |
| drop table sampletb; | |
| drop database sampledb; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment