急,一个日期比较的问题!!! select datediff(dd, getdate(), 截至时间)as leavetime from 招聘信息where datediff(dd, getdate(), 截至时间)>10思路大概就是这样,你改些东西就行了,goodluck 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的checkdate 字段是什么的? checkdate 是一个日期型的字段,大家快帮帮我啊 你用的是什么数据库,如果 oracle那就更方便了,系统有一些函数,以前用过。可现在计不得了,如是sqlserver的话xuyo(阿哟) 可以实现,我以前用vb就是这样写的! SELECT* from table where DATEDIFF(day, getdate(), checkdate)=10 我用的sqlserver数据库,哪位老兄知道啊 select *from where checkdate>getdate() and checkdate<dateadd(day(getdate()),10,getday()) 上边有点问题select *from where checkdate>getdate() and checkdate<dateadd(day,10,getday()) iewzhao(葳蕤)大哥还是不行,提示WHERE附近有语法错误 DATEDIFF 不是很好?不行吗?另外,如果用OLE 引擎,比如ACCESS库则getdate 改成now 就可以了 select *from tablewhere checkdate>getdate() and checkdate<dateadd(day,10,getdate()) 我的在CS的程序string conn= "select *from where checkdate>getdate() and checkdate<dateadd(day,10,getday())"; string Strconn="server=prgserver;user id=prg;password=prg;database=aq;"; SqlConnection myconn=new SqlConnection(Strconn); SqlCommand comm= new SqlCommand (conn,myconn); SqlDataAdapter da=new SqlDataAdapter(conn,myconn); DataSet ds=new DataSet(); da.Fill(ds,"T_DfEmployee"); myconn.Open (); DataGrid1.DataSource =comm.ExecuteReader (); DataGrid1.DataBind (); myconn.Close (); getday() 是我写错了!是getdate() c#调用c++dll回调函数,只能调用一次,循环调用无法更新c#界面,如何处理两边的关系? 怎么分析数据包,并分析数据包内的内容 新年快快快快快快快快快快快快快快快乐 c# 关于SqlHelper 的UpdateDataSet 方法的用法 发疯,vs2005控件多线程更新问题 [请问]如何可以取消掉datagrid中的焦点转移 关于window窗口传值问题, 如何实现qq类似窗体.希望您的建议!很急 textbox与access数据库的连接 form下的datagrid的功能好像没有web下的datagrid强大。 线程转换问题? 类中重载的方法怎么用?
from
where checkdate>getdate() and checkdate<dateadd(day(getdate()),10,getday())
select *
from
where checkdate>getdate() and checkdate<dateadd(day,10,getday())
from table
where checkdate>getdate() and checkdate<dateadd(day,10,getdate())
string Strconn="server=prgserver;user id=prg;password=prg;database=aq;";
SqlConnection myconn=new SqlConnection(Strconn);
SqlCommand comm= new SqlCommand (conn,myconn);
SqlDataAdapter da=new SqlDataAdapter(conn,myconn);
DataSet ds=new DataSet();
da.Fill(ds,"T_DfEmployee"); myconn.Open ();
DataGrid1.DataSource =comm.ExecuteReader ();
DataGrid1.DataBind ();
myconn.Close ();