– Records of cusinfo


INSERT INTO cusinfo VALUES (‘1’, ‘张三’, ‘2’, ‘2016-04-04 11:21:10’, ‘3’);

INSERT INTO cusinfo VALUES (‘2’, ‘李四’, ‘110’, ‘2016-04-05 06:39:55’, ‘1’);

INSERT INTO cusinfo VALUES (‘3’, ‘c’, ‘c’, ‘2016-04-05 06:39:55’, ‘c’);


– Table structure for dpiao


DROP TABLE IF EXISTS dpiao;

CREATE TABLE dpiao (

Id int(11) NOT NULL AUTO_INCREMENT,

cidcard varchar(255) DEFAULT NULL COMMENT ‘身份证号’,

pid int(11) DEFAULT NULL COMMENT ‘票id’,

lyflag varchar(255) DEFAULT NULL COMMENT ‘订票状态’,

PRIMARY KEY (Id)

) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT=‘订票信息表’;


– Records of dpiao


INSERT INTO dpiao VALUES (‘2’, ‘110’, ‘9’, ‘已领票’);

INSERT INTO dpiao VALUES (‘3’, ‘2’, ‘13’, ‘已付款’);

INSERT INTO dpiao VALUES (‘4’, ‘2’, ‘14’, ‘已领票’);

INSERT INTO dpiao VALUES (‘9’, ‘2’, ‘2’, ‘待付款’);

INSERT INTO dpiao VALUES (‘10’, ‘2’, ‘4’, ‘待付款’);


– Table structure for piao


DROP TABLE IF EXISTS piao;

CREATE TABLE piao (

Id int(11) NOT NULL AUTO_INCREMENT,

tid varchar(255) DEFAULT NULL COMMENT ‘车id’,

szdid int(11) DEFAULT NULL COMMENT ‘始发站点id’,

ezdid int(11) DEFAULT NULL COMMENT ‘目的站点id’,

stime varchar(255) DEFAULT NULL COMMENT ‘发车时间’,

pval float DEFAULT NULL COMMENT ‘票价’,

cxzh varchar(255) DEFAULT NULL COMMENT ‘车厢座号’,

ptype varchar(255) DEFAULT NULL COMMENT ‘车票类型’,

yxsj datetime DEFAULT NULL COMMENT ‘有效日期’,

PRIMARY KEY (Id)

) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT=‘车票信息表’;


– Records of piao


INSERT INTO piao VALUES (‘1’, ‘1’, ‘1’, ‘2’, ‘07:30:00’, ‘50’, ‘一车厢20号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘2’, ‘1’, ‘8’, ‘9’, ‘8:20:00’, ‘50’, ‘1车厢22号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘3’, ‘1’, ‘8’, ‘9’, ‘8:00’, ‘50’, ‘二车厢33号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘4’, ‘1’, ‘8’, ‘9’, ‘8:00’, ‘50’, ‘二车厢32号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘5’, ‘1’, ‘8’, ‘9’, ‘8:00’, ‘50’, ‘二车厢31号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘6’, ‘1’, ‘1’, ‘3’, ‘8:00’, ‘50’, ‘二车厢01号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘7’, ‘1’, ‘1’, ‘3’, ‘8:00’, ‘50’, ‘二车厢02号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘8’, ‘1’, ‘1’, ‘3’, ‘8:00’, ‘50’, ‘二车厢03号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘9’, ‘3’, ‘1’, ‘4’, ‘7:00’, ‘10’, ‘一车厢12座号’, ‘软卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘10’, ‘1’, ‘1’, ‘3’, ‘09:31:00’, ‘120’, ‘12车厢12座号’, ‘软卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘11’, ‘1’, ‘1’, ‘3’, ‘09:31:00’, ‘120’, ‘12车厢12座号’, ‘软卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘12’, ‘1’, ‘1’, ‘3’, ‘09:31:00’, ‘120’, ‘12车厢12座号’, ‘软卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘13’, ‘3’, ‘1’, ‘4’, ‘10:30’, ‘100’, ‘12车厢12座号’, ‘硬座’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘14’, ‘2’, ‘1’, ‘3’, ‘12:12’, ‘100’, ‘12车厢12座号’, ‘软卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘15’, ‘2’, ‘1’, ‘3’, ‘12:30’, ‘100’, ‘1车13座’, ‘硬卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘16’, ‘2’, ‘1’, ‘3’, ‘12:30’, ‘100’, ‘1车12座’, ‘硬卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘17’, ‘3’, ‘6’, ‘3’, ‘14:00’, ‘100’, ‘一车厢15座’, ‘硬卧’, ‘2019-04-19 00:00:00’);

INSERT INTO piao VALUES (‘18’, ‘1’, ‘1’, ‘2’, ‘10:12’, ‘190’, ‘一车厢12座’, ‘软卧’, ‘2019-04-19 00:00:00’);


– Table structure for traininfo


DROP TABLE IF EXISTS traininfo;

CREATE TABLE traininfo (

Id int(11) NOT NULL AUTO_INCREMENT,

tname varchar(255) DEFAULT NULL COMMENT ‘车名’,

cz varchar(255) DEFAULT NULL COMMENT ‘车长’,

znums varchar(255) DEFAULT NULL COMMENT ‘总座位数’,

xcnums varchar(255) DEFAULT NULL COMMENT ‘限乘人数’,

traintype varchar(255) DEFAULT NULL COMMENT ‘火车类型’,

PRIMARY KEY (Id)