Access / Jet SQL:日期/时间问题 [英] Access/Jet SQL: Date/time issues

查看:202
本文介绍了Access / Jet SQL:日期/时间问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,


我正在使用Flash MX通过JET连接到MS Access数据库。


我已经存储了使用Flash / Jet进入我的数据库的日期为'dd / mm / yyyy hh:mm:ss''进入DATE / TIME字段。


但是我无法更新,因为WHERE子句,因为我没有正确指定日期。我相信语法明智我需要使用#并以美国格式指定mm / dd / yyyy hh:mm:ss。


我的代码如下: -

Greetings,

I''m using Flash MX connecting to an MS Access database via JET.

I''ve stored dates using Flash/Jet into my database as ''dd/mm/yyyy hh:mm:ss'' into a DATE/TIME field.

However I can''t update because of the WHERE clause as I am not specifying the date correctly. I believe syntax wise I need to use # and specify it in american format mm/dd/yyyy hh:mm:ss.

I have the code below working :-

展开 | 选择 | Wrap | 行号

推荐答案

英国约会似乎没有时间格式因为某种原因。
It appears ok with UK dates it doesnt like the time format for some reason.

展开 | 选择 | Wrap | 行号



由于某些原因英国约会时间格式不合适。

It appears ok with UK dates it doesnt like the time format for some reason.

展开 | 选择 | 换行 | 行号


感谢您的回复。


我修改了我的动作代码,现在存储了日期asmm / dd / yyyy hh:mm:ss填充访问数据库中的DATE / TIME字段(QuizDate)。


TextDate是actionscript中的一个字符串,用于将QuizDate成功插入表中mm / dd / yyyy hh:mm:ss"


当我想根据字段用户名和日期更新表时,它出现了可怕的错误: -


下面的代码: -
Thanks for the reply.

I amended my actionscript code and now the date is stored as "mm/dd/yyyy hh:mm:ss" which populates the DATE/TIME field (QuizDate) in the access database.

TextDate is a string in actionscript which is used to successfully insert the QuizDate into the table as "mm/dd/yyyy hh:mm:ss"

When I want to update the table based on field Username and Date it goes horribly wrong:-

The code below:-
展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


这篇关于Access / Jet SQL:日期/时间问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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