当前位置: 移动技术网 > IT编程>数据库>Mysql > MySQL可以使用斜线来当字段的名字

MySQL可以使用斜线来当字段的名字

2017年12月12日  | 移动技术网IT编程  | 我要评论

jick lce,无线前高层病逝,蜜爸妈

今天发现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;

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网