Skip to content

Instantly share code, notes, and snippets.

@tatuas
Created January 4, 2014 16:05
Show Gist options
  • Select an option

  • Save tatuas/8256848 to your computer and use it in GitHub Desktop.

Select an option

Save tatuas/8256848 to your computer and use it in GitHub Desktop.
MySQLメモ。
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