如何每天创建表格&表名称根据MYSQL中的日期更改 [英] how to create the table daily & table name change according to the date in MYSQL

查看:90
本文介绍了如何每天创建表格&表名称根据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


这篇关于如何每天创建表格&表名称根据MYSQL中的日期更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆