EXCEL 和 MySQL 大体上来说都可以算是"数据库",MySQL貌似有EXCEL的接口,但是最近在自学Python,用Python实现了一下
暂时效果还凑合,后续的学习过程中可能会优化...
背景:
Python: 3.3
EXCEL: 2007
MySQL: 5.6
一. MySQL表部署
1、创建表
mysql> create table cc(
-> id int unsigned not null auto_increment primary key,
-> telno varchar(20) not null,
-> address varchar(10) not null,
-> status varchar(30) not null,
-> enter_time varchar(30) not null,
-> get_time varchar(30),
-> hotline varchar(20) not null,
-> hold_time varchar(10) not null,
-> total_time varchar(10) not null,
-> name varchar(20));
Query OK, 0 rows affected (0.35 sec)
2、添加列和索引
mysql> alter table cc add index in_enter_time(enter_time);
mysql>