我有一个数据库(Access 2007),并希望将日期时间字段表示为Mysql日期时间格式。
例如,“ 23.02.2011 12:23:01”为“ 2011.02.23 12:23:01”。

我正在使用SQL从C#(OLE DB连接)进行访问。

我可以使用Access的哪些存储功能?

例:

select FUNCTION_NAME(DateTimeField, "yyyy.MM.dd HH:mm:ss") from tableName;


我需要什么FUNCTION_NAME?

最佳答案

格式如何?

 select Format(DateTimeField, "yyyy.MM.dd HH:mm:ss") from tableName;

关于c# - 如何将Access 2007 DateTime转换为mysql datetime格式?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5089058/

10-12 17:03
查看更多