Home > Database > Mysql Tutorial > MySQL可以使用斜线来当字段的名字_MySQL

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

WBOY
Release: 2016-06-01 13:18:11
Original
946 people have browsed it

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template