数据库建表语句
01
/*
02
Navicat MySQL Data Transfer
03
04
Source Server : localhost
05
Source Server Version : 50509
06
Source Host : localhost:3306
07
Source Database : wdhdb
08
09
Target Server Type : MYSQL
10
Target Server Version : 50509
11
File Encoding : 65001
12
13
Date: 2017-11-20 15:08:47
14
*/
15
16
SET FOREIGN_KEY_CHECKS=0;
17
18
-- ----------------------------
19
-- Table structure for `t_emp`
20
-- ----------------------------
21
DROP TABLE IF EXISTS `t_emp`;
22
CREATE TABLE `t_emp` (
23
`id` int(16) NOT NULL AUTO_INCREMENT,
24
`name` varchar(200) NOT NULL,
25
`age` int(11) NOT NULL,
26
`salary` double NOT NULL,
27
PRIMARY KEY (`id`)
28
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
29
30
-- ----------------------------
31
-- Records of t_emp
32
-- ----------------------------
33
INSERT INTO `t_emp` VALUES ('1', '最代码', '45', '1000');
34
INSERT INTO `t_emp` VALUES ('2', 'javaniu', '12', '2000');
35
36
-- ----------------------------
37
-- Table structure for `t_user`
38
-- ----------------------------
39
DROP TABLE IF EXISTS `t_user`;
40
CREATE TABLE `t_user` (
41
`id` int(11) NOT NULL AUTO_INCREMENT,
42
`username` varchar(255) NOT NULL,
43
`name` varchar(255) NOT NULL,
44
`password` varchar(255) NOT NULL,
45
`sex` varchar(255) NOT NULL,
46
PRIMARY KEY (`id`)
47
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
48
49
-- ----------------------------
50
-- Records of t_user
51
-- ----------------------------
52
INSERT INTO `t_user` VALUES ('1', 'zuidaima', 'zuidaima', '111111', 'm');
, 相关下载链接:
https://download.csdn.net/download/baidu_38876334/88503110?utm_source=bbsseo