如何每天创建表格&表名称根据MYSQL中的日期更改
问题描述:
如何每天创建表格&表名称根据MYSQL中的日期更改.
我想要这个语法.
how to create the table daily & table name change according to the date in MYSQL.
i want syntax of this.
thanks in advance.
答
以 MySql Connector/Net开头 [ ^ ]并签出创建表... [ DateTime.Now [ ^ ]并在其中创建表格数据库很简单
Start with MySql Connector/Net[^] and check out CREATE TABLE ...[^]
The get the current date and time in C# with DateTime.Now[^] and creating a table in a database is simple
CREATE TABLE tk (col1 INT, col2 CHAR(5), col3 DATE);
您可以在其中用DateTime.Now
Where you can replace tk
with the date from DateTime.Now