码迷,mamicode.com
首页 > 数据库 > 详细

K线数据库表结构

时间:2017-10-31 11:16:41      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:default   数据库表   4.6   val   exists   table   myisam   ima   efault   

 

--
-- 数据库: `bittrex`
--

-- --------------------------------------------------------

--
-- 表的结构 `ltc`
--

DROP TABLE IF EXISTS `ltc`;
CREATE TABLE IF NOT EXISTS `ltc` (
  `id` int(6) NOT NULL AUTO_INCREMENT,
  `timestamp` varchar(10) NOT NULL,
  `datetime` datetime NOT NULL,
  `open` float NOT NULL,
  `close` float NOT NULL,
  `high` float NOT NULL,
  `low` float NOT NULL,
  `volume` float NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `timestamp` (`timestamp`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1440 ;

--
-- 转存表中的数据 `ltc`
--

INSERT INTO `ltc` (`id`, `timestamp`, `datetime`, `open`, `close`, `high`, `low`, `volume`) VALUES
(1, 1504231200, 2017-09-01 10:00:00, 0.0152578, 0.01535, 0.01535, 0.0151101, 7564.68),
(2, 1504234800, 2017-09-01 11:00:00, 0.0153596, 0.015645, 0.0156665, 0.015305, 14360.2),
(3, 1504238400, 2017-09-01 12:00:00, 0.015645, 0.01585, 0.01605, 0.01561, 20670.2);

 

K线数据库表结构

标签:default   数据库表   4.6   val   exists   table   myisam   ima   efault   

原文地址:http://www.cnblogs.com/fangbei/p/kline-table.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!