数据库
首页 > 数据库> > 浮点数 mysql golang 时间序列

浮点数 mysql golang 时间序列

作者:互联网

 

1.6607259e+09 1660725877

mysql> SELECT Val,CreateTs,CreateTs FROM Tab WHERE DeviceId=156 AND OID=".1.3.6.1.4.1.28713.1.2.2.0"  AND CreateTs>=1660704714 AND CreateTs<1660791114 ORDER BY CreateTs ASC LIMIT 1; +--------+------------+------------+ | Val    | CreateTs   | CreateTs   | +--------+------------+------------+ | 429780 | 1660725877 | 1660725877 | +--------+------------+------------+ 1 row in set (0.04 sec)    
	for rows.Next() {
		var X float32
		var Y string
		var a int32
		err = rows.Scan(&Y, &X, &a)

  

 

 

 1660725945

1660725952

golang 处理后的分界线

 

 

   `CreateTs` INT(10) NOT NULL DEFAULT '0' COMMENT '创建时的Unix时间戳',    

标签:rows,浮点数,CreateTs,golang,mysql,var
来源: https://www.cnblogs.com/rsapaper/p/16598084.html