小问题帮忙,非常感谢。。在线等候。。万分急

fifidog 2003-08-30 10:12:43
如何取一个表中从今天开始到前十五天的数据
select * from table where rq="?"取当天数据
select * from table where rq="?"取昨天天数据
。。。。。。
select * from table where rq="?"取天15天的数据

万分感谢。。谢谢
...全文
29 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
jiezhi 2003-08-30
  • 打赏
  • 举报
回复
select * from table where trunc(sysdate-rq)=0
select * from table where trunc(sysdate-rq)=1
...
select * from table where trunc(sysdate-rq)=15

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧