Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql (EXCEL)VBA旋转按钮,可在sql数据库日期时间中单步执行_Mysql_Excel_Vba - Fatal编程技术网

Mysql (EXCEL)VBA旋转按钮,可在sql数据库日期时间中单步执行

Mysql (EXCEL)VBA旋转按钮,可在sql数据库日期时间中单步执行,mysql,excel,vba,Mysql,Excel,Vba,我在MySQL中有一个sql数据库表,它有很多行,具有不同的日期时间值。例如: 2012-08-21 10:10:00 <-- with these date there are around 12 rows 2012-08-21 15:31:00 <-- with these date there are around 5 rows 2012-08-22 11:40:00 <-- with these date there are around 10 rows

我在MySQL中有一个sql数据库表,它有很多行,具有不同的日期时间值。例如:

2012-08-21 10:10:00   <-- with these date there are around 12 rows
2012-08-21 15:31:00   <-- with these date there are around 5  rows
2012-08-22 11:40:00   <-- with these date there are around 10 rows
2012-08-22 12:17:00   <-- with these date there are around 9  rows
2012-08-22 12:18:00   <-- with these date there are around 7  rows
2012-08-25 07:21:00   <-- with these date there are around 6  rows

2012-08-21 10:10:00在MySQL数据库中创建一个显示不同数据值的视图,并将其用作旋转按钮的数据源

CREATE VIEW DISTDATES as
SELECT DISTINCT mydate FROM mytable
然后,您可以进一步将此日期加入mytable(例如列表字段)