从数据库中取出某一天的数据的SQL怎么些??? CONVERT(nvarchar(10), getdate(),126) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 错了是这样的table1:inserttime info data other2003-4-5 12:1:2 xx 23.3 ...2003-4-5 13:10:3 xx 22.4 ...我现在想取2003-4-5的数据怎么取?? select * from table1 where convert(nvarchar(10),inserttime,120)='2002-04-05' select * from table where inserttime like '%2002-04-05%' select * from table1 where datepart(yy,inserttime)=2003 and datepart(mm,inserttime)=4 and datepart(dd,inserttime)=5 虽然麻烦些,但绝对无问题。 SELECT * FROM table1 WHERE inserttime>=2003-4-5 00:00:00 000 AND inserttime<=2003-4-5 23:59:59 999这个绝对可行,我们现在就是这样处理的。 select * from table1 where year(inserttime)=2003 and month(inserttime)=4 and day(inserttime)=5 Ie6下div与div中产生间歇该咱们办? GridView 排序时的下滑下可以去掉吗?如果怎么去掉! Asp.net 批量更新句语的写法 数据库连接问题,帮帮小弟 ExecuteScalar值的问题 如何让DropDownList控件选中的值是数据库中指定的值! 绑定Gridview控件问题 这个机试题,增删改查都在dataset 中执行,是什么意思。 datagrid删除记录时怎样得到id号呢? 用ASP。NET怎么做一个服务程序呢 请问DataGrid查询后如何再分页? web页面的安全问题
table1:
inserttime info data other
2003-4-5 12:1:2 xx 23.3 ...
2003-4-5 13:10:3 xx 22.4 ...
我现在想取2003-4-5的数据怎么取??
虽然麻烦些,但绝对无问题。
这个绝对可行,我们现在就是这样处理的。
and day(inserttime)=5