设为首页 加入收藏  
首页 >>ASP>>正文

sql日期函数总结

作者: 上传时间:2008-1-16 1:00:55 来源:

access

        this.GridView1.DataSource = mydb.getDataSet("select * from web_product_order where o_create between dateadd("d",-1,"" + Calendar1.Value + "") and dateadd("d",1,"" + Calendar2.Value + "")" + kc + zt + " order by id desc");

sql中 dateadd(day,3,1992-10-18)

select top 1 convert(varchar(10),vtime,20),count(*) as c
from CounterView
group by vtime
order by c desc

版权所有:天天网络工作室 晋ICP备06006449
手机:13103416120
Email:sxlwp@163.com QQ: 170229409