OSDN Git Service

テーブルのデータ型を変更した
[webchat/WebChat.git] / init.sql
1 CREATE DATABASE IF NOT EXISTS profile;
2 grant select,
3         insert,
4         delete,
5         update on *.* to user identified by 'user';
6 flush privileges;
7 use profile;
8 drop table list;
9 create table list(name VARCHAR(64) NOT NULL,
10         age SMALLINT  UNSIGNED DEFAULT 0,
11         height SMALLINT  UNSIGNED DEFAULT 0,
12         weight SMALLINT  UNSIGNED DEFAULT 0,
13         race VARCHAR(64),
14         password VARCHAR(16),
15         lastmodified DATETIME,
16         etc TEXT,
17         PRIMARY KEY(name));