易截截图软件、单文件、免安装、纯绿色、仅160KB

access 中的datetime字段怎样得到2010-01-20

string strDatefrom="2010-01-20";
string strDateTo="2010-01-21";

where FormatDateTime(updatetime,0)  between #" + strDatefrom + "# and #" + strDateTo + "#


我想把updatetime 中的日期 2010-1-20 14:11:39 变为 2010-01-20
SELECT format([datefiled],'yyyy-mm-dd')
from yourtable;

从逻辑上来说,你的这个不需要转。

语法错误 (操作符丢失) 在查询表达式 'updatetime!=null and  format([updatetime],'yyyy-mm-dd')  between #2010-01-20# and #2010-01-21#' 中。

where updatetime!=null and  updatetime  >=#" + Convert.ToDateTime(strDatefrom) + "#  and  updatetime <=#" + Convert.ToDateTime(strDateTo) + "#

语法错误 (操作符丢失) 在查询表达式 'updatetime!=null and  updatetime  >=#2010-1-18 0:00:00#  and  updatetime <=#2010-1-21 0:00:00#' 中。

郁闷

C# code:

sql = "select id ,type,product_type,product_type2 from M_product where updatetime!=null and updatetime >=" + Convert.ToDateTime(strDatefrom) + " and updatetime <=" + Convert.ToDateTime(strDateTo) + " ";




语法错误 (操作符丢失) 在查询表达式 'updatetime!=null and  updatetime  >=


相关问答:

ASP+ACCESS输出问题 - Web 开发 / ASP

哪里出错了,输出这样的结果??
<%@ Page Language="VB" AutoEventWireup="false" aspcompat="true" CodeFile="Default.aspx.vb" Inherits="_Default" %&g ......

asp连接ACCESS数据库的问题!!

最近学习asp,当练习到连接数据库的时候,频频出错,可就是不知道错在怎么地方,请高手帮忙看看!!谢谢!
包含文件xx.asp、xxsave.asp、conn.asp以及student1.mdb和表xxgl……
xx.asp为:
<html>
<hea ......

access中的text型数字 - 其他数据库开发 / Access

access中的text型的数字,怎么比较大小啊?
大家知道吗?
因为我想根据这一列数据的大小查询一些东西
举个例子:
就是,我有一列数据为编码:
是text型的数字:如
1101
1102
1103
等,
我现在要取出编码比 ......

dwr Illegal access to default constructor错误

dwr.xml:
<create creator="struts" javascript="PrisonerActionForm">
  <param name="formBean" value="prisonerForm"/>
  < ......

tomcat连接Access数据库问题。 - Java / Web 开发

各位高手好,麻烦帮我看下这个数据库连接问题:
做了一个BBS但是数据库就是连接不上。错误代码如下
HTTP Status 500 - 
------------------------------------------------------------------------------- ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号