create_database.sql

来自「php源码 php源码参考」· SQL 代码 · 共 56 行

SQL
56
字号
create database mlm;use mlm;create table lists(   listid int auto_increment not null primary key,   listname char(20) not null,   blurb varchar(255));create table subscribers(  email char(100) not null primary key,  realname char(100) not null,  mimetype char(1) not null,  password char(40) not null,  admin tinyint not null);# stores a relationship between a subscriber and a list create table sub_lists(  email char(100) not null,  listid int not null);create table mail(  mailid int auto_increment not null primary key,   email char(100) not null,  subject char(100) not null,  listid int not null,  status char(10) not null,  sent datetime,  modified timestamp);#stores the images that go with a particular mailcreate table images(  mailid int  not null,  path char(100) not null,  mimetype char(100) not null);grant select, insert, update, deleteon mlm.*to mlm@localhost identified by 'password';insert into subscribers values('admin@localhost', 'Administrative User', 'H', sha1('admin'), 1);insert into subscribers values('laura_xt@optusnet.com.au', 'Administrative User', 'H', sha1('admin'), 1);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?