This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id="videoPlayer" style="text-align:center;"> | |
<video height="210" controls poster="http://www.sinaimg.cn/dy/slidenews/1_img/2014_40/43011_490985_109173.jpg"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="name" content="personcompanylist"> | |
<title>download</title> | |
<style type="text/css"> | |
.box{ | |
text-align: center; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MySQL 日期类型 | |
MySQL 日期类型:日期格式、所占存储空间、日期范围 比较。 | |
日期类型 存储空间 日期格式 日期范围 | |
------------ --------- --------------------- ----------------------------------------- | |
datetime 8 bytes YYYY-MM-DD HH:MM:SS 1000-01-01 00:00:00 ~ 9999-12-31 23:59:59 | |
timestamp 4 bytes YYYY-MM-DD HH:MM:SS 1970-01-01 00:00:01 ~ 2038 | |
date 3 bytes YYYY-MM-DD 1000-01-01 ~ 9999-12-31 | |
year 1 bytes YYYY 1901 ~ 2155 | |
在 MySQL 中创建表时,对照上面的表格,很容易就能选择到合适自己的数据类型。不过到底是选择 datetime 还是 timestamp,可能会有点犯难。这两个日期时间类型各有优点:datetime 的日期范围比较大;timestamp 所占存储空间比较小,只是 datetime 的一半。 |
OlderNewer