oracle数据库中,两个numeric类型字段:year和month。要查找1999/10-2000/2的数据,SQL语句该怎么写?谢谢。

formalin 2002-01-10 11:56:33
oracle数据库中,两个numeric类型字段:year和month。要查找1999/10-2000/2的数据,SQL语句该怎么写?谢谢。
...全文
100 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Soft21 2002-01-12
  • 打赏
  • 举报
回复
大家好啊,哈哈,妙!
windindance 2002-01-10
  • 打赏
  • 举报
回复
select * from 表名 where year*12+month>= 1999 *12 + 10 and year*12+month <= 2000 *12 + 2
LLSS666 2002-01-10
  • 打赏
  • 举报
回复
select * from 表名 where year>=1999 and year<=2001 and (month>=10 or month<=2)

2,596

社区成员

发帖
与我相关
我的任务
社区描述
Sybase相关技术讨论区
社区管理员
  • Sybase社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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