Mysql (EXCEL)VBA旋转按钮,可在sql数据库日期时间中单步执行
我在MySQL中有一个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
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(例如列表字段)