以文本方式查看主题

-  蓝色快车PB俱乐部论坛  (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspindex.asp)
--  PowerBuilder MIS编程  (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspbbs.asp?boardid=1)
----  怎样按日期查询?(在线等待!!)  (http://pb.besoft.com.cnhttp://pb.besoft.com.cn/bbs/index.aspdispbbs.asp?boardid=1&rootid=120&id=542)


--  作者:zxz0614
--  发布时间:2003/4/15 13:41:08

--  怎样按日期查询?(在线等待!!)
我想按某个时间段进行查询,例如想查询起始日期"2003-01-01"到结束日期"2003-04-31"这段时间的数据,但如果没有就进行提示,应该怎样做?谢谢大侠们!
--  作者:basswood
--  发布时间:2003/7/20 12:21:18

--  
select * from tabname where between "2003-01-01" and "2003-04-31";

--  作者:cmaboy
--  发布时间:2003/7/23 18:34:00

--  

select * from tabname where 你的列名  between "2003-01-01" and "2003-04-31";

">