config.sql


# mysql服务器注释支持
# #到该行结束
# -- 到该行结束
# /* 行中间或多个行 */


drop database if exists db_warehouse;
create database db_warehouse;
use db_warehouse;

/*
create table t_user (
id int(8) primary key auto_increment,
userName varchar(20) not null,
password varchar(20) not null
);
*/

--insert into t_user (userName, password) values ("muhe221", "123456");
--insert into t_user (userName, password) values ("muhe222", "456789");

create table U_User (
userName varchar(12) primary key not null ,
password varchar(20) not null,
name varchar(12),
sex int(1),
phoneNumber varchar(11),
mail varchar(20),
QQ varchar(12)
);

insert into U_User (userName, password, name, sex, phoneNumber, mail, QQ) values ("muhe221", "123456", "caoming", 0, "15618208119", "muhe221@126.com", "657224591");

原文地址:https://www.cnblogs.com/muhe221/p/8591020.html