bitscn.com今天发现mysql可以使用斜线来当字段的名字,这是个意外的发现。
create table `op_day` (
`id` int(11) not null auto_increment,
`date` date not null default '0000-00-00' comment '日期',
`income` int(11) not null default '0',
`total` int(11) not null default '0',
`income/total` double(11,2) not null default '0.00',
primary key (`id`),
key `unique` (`date`)
) engine=innodb auto_increment=0 default charset=utf8;
bitscn.com